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

How do I navigate to next screen after validation? – Flutter

SizedBox( height: 50, width: 160, child: Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), color: const Color(0xFF0890F2)), child: TextButton( style: TextButton.styleFrom( backgroundColor: const Color(0xFF223843), ), onPressed: () { final form = _formkey.currentState; if (form != null && form.validate()) { Navigator.push( context, MaterialPageRoute( builder:…

VIEW QUESTION
Back To Top
Search