i have a form like this
name
i want to do this validation for empty fields when the user clicks on the submit button he should get an error MSG listing all empty fields that are empty on top of the form with the error element if empty being highlighted how can i do this using j query. can anyone help me on this thanks for Ur response
I think this may be same what you need.
HTML
Javascript
Usage: just add the
id="required"in form elements which you want to validate.Example on JsFiddle: http://jsfiddle.net/blackship/TarGv/4/
Good luck!