Demos
|
#1: A simple example This is an "out the box" validation, using all the default settings. As with all these demos, see the bottom of the page for all pertinent configuration and validation code. $(document).ready(function() { $("#demo_form1").RSV({ onCompleteHandler: myOnComplete, rules: [ "required,first_name,Please enter your first name.", "required,last_name,Please enter your last name.", "required,email,Please enter your email address.", "valid_email,email,Please enter a valid email address.", "required,any_integer,Please enter your age.", "digits_only,any_integer,The age field may only contain digits.", "required,marital_status,Please enter your marital status." ] }); }); |