Bug Tracker

Modify

Ticket #2702 (closed bug: duplicate)

Opened 5 years ago

Last modified 5 years ago

Wrap manipulation resets state of radiobutton in IE

Reported by: e-andy Owned by:
Priority: major Milestone: 1.2.3
Component: core Version: 1.2.3
Keywords: wrap attributes Cc: e-andy@…
Blocking: Blocked by:

Description

Wrap manipulation resets state of radiobutton in IE 6 only (6.0.2900.2180 sp2)

For example:

<html> <head>

<script type="text/javascript" src="/media/inc/jquery/main/v1.2.3/jquery.min.js"></script> <script type="text/javascript">

$("form").ready(function() {

$(":radio[name=xxx][value=1]").attr("checked", "true"); value may be "1", true, "yes" etc - result doesnt change alert($(":radio[name=xxx][value=1]").attr("checked")); $("span").wrap("<div></div>"); alert($(":radio[name=xxx][value=1]").attr("checked"));

});

</script>

</head> <body> <label>

<form>

<span>

<input type="radio" name="xxx" value="1"/>yes <input type="radio" name="xxx" value="0"/>no

</span>

</form>

</label> </body> </html>

Change History

comment:1 Changed 5 years ago by davidserduke

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

duplicate of #2703

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

View

Add a comment

Modify Ticket

Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.