javascriptjqueryformsjquery-plugins

jQuery form validation with two validation messages


Client side form validation becomes easiest by using jQuery.

I tried all validators and they are so simple!

But in date, number and range validators; I need to add two validators in sequence

  1. Required 2) Date

So is it possible?

Another common requirement is to reset the Form Fields. Is it possible using jQuery without writing too much code?


Solution

  • You can add many rules at once.

    As far as resetting the form, there is a method for this built into Javascript:

    $('#myform')[0].reset();