© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. HarwanijQuery Recipeshttps://doi.org/10.1007/978-1-4842-7304-3_4

4. Form Validation

Bintu Harwani1  
(1)
Ajmer, Rajasthan, India
 
In this chapter, you will explore different ways of form validation. You will be learning the following recipes in this chapter:
  • Confirming the essential field is not left blank

  • Confirming only numerals are allowed

  • Validating phone numbers

  • Validating the user id

  • Validating a date

  • Validating an email address

  • Checking whether a checkbox is checked or not

  • Finding if a radio button is selected or not

  • Finding if any option from a select element is selected or not

  • Applying styles to options and form buttons

  • Checking and unchecking all checkboxes ...

Get jQuery Recipes: Find Ready-Made Solutions to All Your jQuery Problems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.