Simple bind not working in IE for Radiobutton in jQuery

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-03-19T04:40:56Z Indexed on 2010/03/19 6:51 UTC
Read the original article Hit count: 133

Filed under:
|

Hi this works fine in Firefox, but not IE. What am I doing wrong? Thanks for the help in advance!

$(document).ready(function(){
  $("#radiodiv").buttonset();
  $('#radio1').bind("click", function() {
     alert('Hello');
   });
}

<form>
 <div id="radiodiv">
  <input type="radio" id="radio1" name="radio" checked="checked"  /><label for="radio1">WaveHeight</label>
  <input type="radio" id="radio2" name="radio" /><label for="radio2">Current</label>
  <input type="radio" id="radio3" name="radio" /><label for="radio3">WaveHeightDir</label>
 </div>
</form>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about cross-browser