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: |
Description
Hi,
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(){
$("button").click(function(){
var source = $("#source"); var target = $("#target"); target.after(source);
});
}); </script> </head> <body> <h1>Test</h1>
<form>
<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>
<h2>Source</h2>
<div id="source"> <input type="radio" name="sex" value="male" checked="checked" /> Male <input type="radio" name="sex" value="female" /> Female </div>
<h2>Target</h2>
<div id="target"> </div>
</form>
</body> </html>
Thanks and kind regards,
Michael
Hi,
sorry this seems to be the same issue as in Ticket #5761. So please forget about this ticket.
Thanks and kind regards,
Michael