Luey
asked on
help calling a function within jquery
In the code below I want to call the function blinkLoading() in the submit handler but I do not know how. Thanks.
$("#classified").validate( {
errorPlacement: function (error, element) { //puts the error message beside the label
$('#'+element.attr("id")+'_label').append(error);
},
rules: {
email: {required: function(element) {return $('#phone').val() == '';}},
phone: {required: function(element) {return $('#email').val() == '';}}
},
messages: {
email: {required: 'Email or Phone Required'},
phone: {required: 'Email or Phone'}
},
submitHandler: function(form) { //submits form and hide button shows loading
call function here???
$("#cls_button_box").hide();
form.submit();
}
});
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER