Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5761 closed bug (duplicate)

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:
Blocked by: Blocking:



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 (3)

comment:1 Changed 13 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 13 years ago by mpdietrich


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


comment:3 Changed 13 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Dup of #5758.

Note: See TracTickets for help on using tickets.