jQuery Examples:
Modal Contact Form Example
TRY ME: Basic jQuery form using validate plugin and a
character count.
- Validate
plugin is called via one line - $("#shareInfo").validate();
which is the ID on the form.
- I added the class="required" to each of the input/text area
elements that needs to be validated. Added class "email" to have it
validate for e-mail.
- A great live character counter was applied, thanks to http://thepalmcivet.com
- Overlay is created using Simple
Modal.
- Both buttons above populate the same overlay.
- jquery-example-form.html called with $.ajax - See http://api.jquery.com/jQuery.ajax/
Shareform populates here: