Skip to main content

Bug Tracker

Side navigation

#9433 closed bug (invalid)

Opened May 26, 2011 02:39PM UTC

Closed May 27, 2011 12:34AM UTC

IE8 radio buttons can't be selected when jquery onchange event handler is assigned

Reported by: Raivo F Owned by:
Priority: low Milestone:
Component: event Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

Probably it happens because jquery adds additional jQueryNNNNN.. attribute to input tags.

HTML source:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

<html xmlns="">
  <script type="text/javascript" src="jquery-1.6.1.min.js"></script>


  <form id="form1" action="" method="post">
    <label><input type="radio" name="test" value="1"/> Test 1</label>
    <label><input type="radio" name="test" value="2"/> Test 2</label>
    Value: <span id="val">?</span>

  <script type="text/javascript">


      $('#val').html($('#form1 input:radio:checked').val());
      return false;



Attachments (0)
Change History (2)

Changed May 26, 2011 03:12PM UTC by timmywil comment:1

component: unfiledevent
priority: undecidedlow

This works fine. There's no need for the return false:

I'm not sure what return false should/could do across browsers for a change event.

Changed May 27, 2011 12:34AM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed
The change event occurs when a control loses the input focus and its value has been modified since gaining focus. This event is valid for INPUT, SELECT, and TEXTAREA. element. Bubbles: Yes Cancelable: No Context Info: None --

So yeah, don't return false or event.preventDefault() on a change event.