Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

form validation using jquery

jQuery(document).ready(function() {
   jQuery("#forms).validate({
      rules: {
         firstname: 'required',
         lastname: 'required',
         u_email: {
            required: true,
            email: true,//add an email rule that will ensure the value entered is valid email id.
            maxlength: 255,
         },
      }
   });
});
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #form #validation #jquery
ADD COMMENT
Topic
Name
3+5 =