It works in jQuery 1.6.3 but not jQuery 1.6.4
$("#a").click(function(){
alert("click");
});
<a id='a' href="#">test</a>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is jsFiddle’s bad I believe, not jQuery.
I get an error when trying to attach to the
window‘s load event. Something tells me they’ve pushed an un-tested update.So, what’s basically happening is your event isn’t being attached because when it tries to bind your javascript code to execute after the DOM is ready it bombs. Switching to no wrap (body) in the fiddle allows it to work.