DO NOT include hidden fields in the plugin data. I had 3 hidden fields that weren't required but they were phoneUS.
That must be a no no. I havent thought about the logic behind... but I am moving on to the next problem. and it may have been that i had no messages setup for them. only rules. On Aug 10, 6:56 pm, Miket3 <miketro...@gmail.com> wrote: > Here it is minus the submit handler > > var v = $("#myform").validate({ > > rules: { > username: {required: true, > minlength: 4, > remote: {url:"lookup.php", > type : "post", > data: {table:"members", > failmsg:"true", > successmsg:"false", > key:"username", > value:function(){return $("#username").val > (); } > } > } > }, > password: {required: true, > minlength: 5 > }, > email: {required: true, > email: true > }, > zipcode: {required: true, > minlength: 5 > }, > phone: { phoneUS: true }, > cellphone: { phoneUS: true }, > fax: { phoneUS: true }, > > }, //end of rules > messages: { > username: { > required: "<br>Enter a username", > minlength: jQuery.format("<br>Enter at least {0} > characters"), > remote : jQuery.format("<br>Sorry... {0} is > already taken."), > }, > password: { > required: "Provide a password", > rangelength: jQuery.format("Enter at least {0} > characters") > }, > email: { > required: "Please enter a valid email address", > minlength: "Please enter a valid email address" > } > }, //end of messages > > // the errorPlacement has to take the table layout into account > errorPlacement: function(error, element) { > if ( element.is(":radio") ) > error.appendTo( > element.parent().next().next() ); > else if ( element.is(":checkbox") ) > error.appendTo ( element.next() ); > else > error.appendTo( element.parent() ); > }, //end of errorPlacement > // set this class to error-labels to indicate valid fields > success: function(label) { > var valid_img = '<img src="/global_libs/images/icons/ > checked.gif">'; > // set as text for IE > label.html(valid_img); > } // end of success > > }); > > On Aug 10, 6:12 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com> > wrote: > > > Please show the rest of your code. > > > Jörn > > > On Mon, Aug 10, 2009 at 11:49 PM, Miket3<miketro...@gmail.com> wrote: > > > > Here is my handler: > > > > submitHandler: function(form) { > > > alert('I CANT GET THIS TO TRIGGER'); > > > }, > > > > Here is my button: > > > > <input class="submit" type="submit" id="register" value="Register"> > > > > How do i trigger a validate when the submit button is clicked? > > > > All of my validations work while I am working with the form but the > > > button does zilch.