Review the form below:
<form>
<input type="text" value="" placeholder="Enter no. of employee" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" required/>
<input type="text" value="" placeholder="Enter Salary" required/>
<input type="submit"/>
</form>
I am looking for a regular expression validation specifically for the Enter salary text field with the following criteria:
The salary should be in the format of separated by commas like this: 1,00,000
It should only accept numerical input, similar to the behavior of the "Enter no. of employee" field.