Link to home
Start Free TrialLog in
Avatar of Luey
LueyFlag for United States of America

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();    
         }

	     });

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of basicinstinct
basicinstinct
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Luey

ASKER

Thanks