How to apply currency validation to text box using a regular expression? – Jquery
Consider this form: <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 want a regular expression validation for Enter salary text feild with following: The…