hi all,
i'm trying to do some event delegation, and i can't seem to get the onchange event working in IE. i've tried:
and later i have:
- $(document).change(function () { alert('fuck. me. IE sux'); }); $(document.body).change(function () { alert('fuck. me. again'); });
- <select id="aSelect"> <option value="0">a first option</option> <option value="1">a second option</option> <option value="2">a third option</option> <option value="3">a fourth option</option> </select>
but this doesn't work in IE. any help would be appreciated. i've also tried to wire these up manually:
and document.onchange, but those don't work either.
- document.body.onchange = function (e) { alert('foo); };
what's the story here (other than the fact that IE is sucking balls)?