Bug Tracker


Ticket #5761 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

Radio Button Group looses checked value in IE8 when moving it using after()

Reported by: mpdietrich Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: after IE radio button Cc:
Blocking: Blocked by:



I assume I found a bug when running JQuery 1.3.2 in IE8.

I try to use after() to move a div container. In case this div contains a radio button group and I select a different value from the group then the initially selected one, the selection gets lost in IE8, when moving the div using after(). The same works fine for Firefox and Safari.

The following code can be used, to repoduce this issue:

<html> <head> <title>Test</title> <script type="text/javascript" src="jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){


var source = $("#source"); var target = $("#target"); target.after(source);


}); </script> </head> <body> <h1>Test</h1>


<p>Instructions : check "female", then click button.</p> <p>In Firefox, the value of the checked radio is kept -- That's correct. <br />

In IE, the value of the checked radio is lost -- That's a bug.</p>

<button type="button">Click to move radio buttons down</button>


<div id="source"> <input type="radio" name="sex" value="male" checked="checked" /> Male <input type="radio" name="sex" value="female" /> Female </div>


<div id="target"> </div>


</body> </html>

Thanks and kind regards,


Change History

comment:1 Changed 4 years ago by mpdietrich


sorry this seems to be the same issue as in Ticket #5761. So please forget about this ticket.

Thanks and kind regards,


comment:2 Changed 4 years ago by mpdietrich


sorry wrong ticket number reference, it should be #5758.


comment:3 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Dup of #5758.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.