#This is a simple Jquery class for validating a html form before submitting. To use this library you would need:
- Jquery library
- Html form with name and id attributes provided
- For each required field and class required ie class="required"
- Then to display erro message add a span with the id="error_{put name of the required filed}"
- Then add a submit button.
- Add the following code at the end.
$("#validate").submit(function(){ return $ (this).simple_form_validator(); });