views:

36

answers:

1

Hi

I heard this issue is fixed in jquery 1.4.2 but I am still getting this problem. I am using

"~/Plugins/jquery-1.4.2.js" 

I have this

$('#id').live('change', function (e)
{
  // do stuff
});

It works in firefox 3.6 but not ie 8.

A: 

The change event works perfectly for me in all browsers including IE6+.

Check out the following fiddle http://jsfiddle.net/EsVR3/ .

What element are you using the 'change' event on?

Marko

Marko
Drop down list(select list)
chobo2
Ya I see it works on your even when I change to dropdown list. It's so weird not sure why it does not work. Like I said it works in firefox no problem. I changed it to live query and that works as well.
chobo2
So my one works for you but you can't get it to work on your webpage? Have you wrapped your code inside the $(document).ready() event?
Marko
Yep. I have it in a document.ready() like I said works in all browsers except IE 8. I tried a localhost of jquery and hosted on google does not still work. I wrapped my event with the jquery livequery plugin and it works in IE8 and all browsers.
chobo2
Yes your works just fine and I tried changing it to drop down list and it works too. Like I said I don't know what is going on.
chobo2
Hmm that's odd - if you like you can post your code on jsFiddle or pastebin and I can have a look for you.
Marko