Jquery live not working in IE
Posted
by Kaskade
on Stack Overflow
See other posts from Stack Overflow
or by Kaskade
Published on 2010-04-09T08:46:12Z
Indexed on
2010/04/09
8:53 UTC
Read the original article
Hit count: 318
Hi,
I have some code that works fine in FF but not in IE. I have read other posts saying that the Jquery live method does not support change events but I am using a click event. Here is my code, it is inside $(document).ready(function():
$("a").live("click", function(e) {
alert("link clicked");
//do stuff
});
If FF the alert is fired but not in IE. When I use $("a").click it works fine, the problem is that I need to the function to be applied to links that do not exist when the page is first loaded (they will be created via ajax calls at a later stage).
Do I have any options here. We are using jquery-1.4.1.min.js.
Thanks in advance
© Stack Overflow or respective owner