Hi, the following problem occurred to me under IE. Firefox is dealing OK with
the code.
For example :
$('#list_element > ul > li').bind('click', function() {
$(this).addClass('some_class');
});
IE throws a JS error
I think that under IE 'this' is not recognized as the object just being
clicked.
If we have in the body of the function - alert(this.tagName) -
FF - alerts 'LI'
IE - alerts 'undefined'
I'll be very grateful for any sugestions and solutions, thanks in advance.
--
View this message in context:
http://www.nabble.com/%27this%27-can%27t-be-used-in-%24%28%27elt%27%29.bind%28%27event%27%2Cfunction%28%29%7B%7D%29-under-IE-tf2355391.html#a6560398
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/