Solved

javascript not working in ie7

Posted on 2012-03-27
2
299 Views
Last Modified: 2012-03-27
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

0
Comment
Question by:Luey
2 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 365 total points
Comment Utility
IE7 is fussy about javascript syntax. Could it be that line 13 needs a semi-colon at the end?
0
 

Author Closing Comment

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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now