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

asked on

javascript not working in ie7

This code works in firefox but not in ie7.  It also makes all of my other javascript codes fail in ie7.  Does anybody see something wrong with it.

$("#account_info").validate( {
							
	  errorPlacement: function (error, element) {  //puts the error message beside the label    
	   $('#'+element.attr("id")+'_label').append(error); 		 
         },
		 
		 
	  rules: { 
       profile_2: { profileNotEqualTo: "#profile_1"}, //profile 1 cannot be equal to profile 2  
	     },
		 
	  messages: { // custom messages
	   county_ansi: "Setting your location is required. Please enter a city or zip code to search."
		 },
		 
	  submitHandler: function(form) { //submits form and hide button shows loading
       $("#loading_box").show();
       $("#button_box").hide();
	   form.submit();    
         }
		 
	     });

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America 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

I agree with fussy.  I took out this comma and it worked.  "#profile_1"}, //profile 1  
 I will try the semicolon.