We help IT Professionals succeed at work.

help calling a function within jquery

Luey
Luey used Ask the Experts™
on
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();    
         }

	     });

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
where you have:

call function here???

just put this:

blinkLoading();

Open in new window

Author

Commented:
Thanks