• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

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    
	  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

Open in new window

1 Solution
Tom BeckCommented:
IE7 is fussy about javascript syntax. Could it be that line 13 needs a semi-colon at the end?
LueyAuthor Commented:
I agree with fussy.  I took out this comma and it worked.  "#profile_1"}, //profile 1  
 I will try the semicolon.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now