Hey guys thanks in advance for all your help! I have this registration form which is then validated using "bassistance's" validate.js:
$('#pForm').validate({
rules: {
fname: "required",// simple rule, converted to {required:true}
lname: "required",
accType: "required",
country: "required",
email: {// compound rule
required: true,
email: true
},
city: "required"
},
success: function(){
$('#pForm').hide('slow');
$('#accForm').show('slow');
}
});//form validate
Now, validation is working fine... except the success tag (which I've added)... so, although it says that fields are required, it goes ahead and reads the code under "success" as soon as I change one field. Any ideas how I can get around this one? Oh... and is there an "onFailure" type of tag is jQuery?