Using j Query you can easily check if radio is checked.
It is often used to collect user's information such as name, email address, location, age, and so on.
Tip: However, you can validate email format using regular expression.
But a user might enter an email that is correctly formatted but does not exist.
This lesson explains some ways that Java Script is useful when using forms in your web pages and how to handle events and validations before submitting the form data back to your server-side scripts. An HTML form is any text box, check box, or radio button that takes input from a user.
HTML comes with several form input types that you can use without creating your own input options.