We help IT Professionals succeed at work.
Get Started

jquery click event not working in IE 7 or 8

dolythgoe
dolythgoe asked
on
579 Views
Last Modified: 2012-05-12
I've spent ages reading and trying different things to work but I can't get the onclick event to work in IE like it does in every other browser!

The link code:

<a href="#" id="signupopen">QUICK SIGNUP</a>

Open in new window


js is called before in the <head> (tried putting it at bottom too but didn't work

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquerywindow.js"></script>

Open in new window


jquery code in jquerywindow.js :

		$('#signupopen').click(function() {
			$signup.load('signup.php').ready(
			$signup.dialog('open'));
			// prevent the default action, e.g., following a link
			return false;
		});

Open in new window


Also tried:

		$('#signupopen').live("click", function() {
			$signup.load('signup.php').ready(
			$signup.dialog('open'));
			// prevent the default action, e.g., following a link
			return false;
		});

Open in new window


To no avail :(

Would love some help through this IE deugging nightmare!
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE