skip to Main Content

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…

VIEW QUESTION

PHP form validation for user registration

Add User * required field <label for="firstname"> First Name</label> <input type="text" name="firstname"> <span class="error">* <?php echo $nameErr;?></span> <br><br> <label for="lastname">Last Name</label> <input type="text" name="lastname"> <span class="error">* <?php echo $nameErr;?></span> <br><br> <label for="email">Email</label> <input type="text" name="email"> <span class="error">* <?php echo $nameErr;?></span>…

VIEW QUESTION
Back To Top
Search