I am trying to use spry validation with ajaxForm. The problem is I don't think my forcing spry validation at time of beforeSubmit is finding the form. I'm not getting any errors, seems like beforeSubmit isn't firing because it can't find the form, "form1"
$("#form1").ajaxForm({
url: "processPhoneEdit.php",
beforeSubmit: function(){
if (Spry) { // checks if Spry is used in your page
var r = Spry.Widget.Form.validate(form1); // validates the form
if (r)
alert("testing");
return (r);
}
},
success: alert("success"),
complete: alert("complete")
});