handling window.change event in IE

handling window.change event in IE

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:

   
  1. $(document).change(function () { alert('fuck. me. IE sux'); }); $(document.body).change(function () { alert('fuck. me. again'); });
and later i have:

   
  1.   <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:

   
  1.  document.body.onchange = function (e) { alert('foo); };
and document.onchange, but those don't work either.

what's the story here (other than the fact that IE is sucking balls)?