Why doesn't $("#RadioButtons:checked").val()
- id selector - work in Internet Explorer but $("input:radio[name='RadioButtons']:checked").val()
- name selector - does?
<input name="RadioButtons" id="RadioButtons" type="radio" value="1" checked>
<input name="RadioButtons" id="RadioButtons" type="radio" value="2">
<script>
alert($("#RadioButtons:checked").val());
alert($("input:radio[name='RadioButtons']:checked").val());
</script>