#5758 closed bug (duplicate)
Manipulation in IE7 drops value of radio buttons
Reported by: | Pierre | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | manipulation | Version: | 1.3.2 |
Keywords: | ie7 manipulation move radio checked value lost | Cc: | |
Blocked by: | Blocking: |
Description
<html>
<head>
<title>Manipulation in IE7 drops value of radio buttons</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<form>
<h1>Manipulation in IE7 drops value of radio buttons</h1>
<p>Instructions : check "female", then click button.</p>
<p>In Firefox, the checked radio is kept -- That's correct.<br />
In IE, the checked radio is lost -- That's the bug.</p>
<button type="button">Click to move both 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>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(){
var source = $("#source");
var target = $("#target");
target.after(source);
/* the same happens also with before, insertAfter, and insertBefore */
});
});
</script>
</body>
</html>
Attachments (1)
Change History (7)
Changed 13 years ago by
Attachment: | ie7_radio.html added |
---|
comment:2 Changed 13 years ago by
Closest open ticket I can find is #3879, most likely it's a similar cause so I'll cross-reference it there.
comment:3 Changed 13 years ago by
The value of the radio buttons disappear also when performing .wrap() or .unwrap() on their container.
comment:4 Changed 13 years ago by
Component: | unfiled → manipulation |
---|
comment:5 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Demo of the bug (open me in IE7)