Skip to main content

Bug Tracker

Side navigation

#9259 closed bug (duplicate)

Opened May 12, 2011 06:42PM UTC

Closed May 19, 2011 02:42PM UTC

Last modified May 19, 2011 02:42PM UTC

1.6 breaks my code

Reported by: chuck@chuckadams.net Owned by: chuck@chuckadams.net
Priority: low Milestone: 1.next
Component: attributes Version: 1.6
Keywords: Cc:
Blocked by: Blocking:
Description

JQuery 1.3 - 1.5.2 seems to run this code ok. 1.6 does not.

In my app I dynamically update the status of two radio buttons that indicate the direction off a "pin".

<div id="pinio">

<input type="radio" name="I_O" value="0" onclick="editPin('I_O',0)"> In<br />

<input type="radio" name="I_O" value="1" onclick="editPin('I_O',1)"> Out<br /><br/>

</div>

Whenever a new pin is selected the following jquery updates the radio buttons to indicate which direction that pin in pointing.

var $radios = $('#pinForm input[name="I_O"]:radio'); $radios.filter('[value='+pinsMainRaph[i].PT_io_type+']').attr('checked',true);

pinsMainRaph[i].PT_io_type will be either a "0" or a "1" depending on pin direction.

Works great in earlier versions. In 1.6 it sets the radio buttons correctly the first time it runs, but not at all after that. No errors in Chrome, no clue as to why. Tried several variations and still no workie. Happy to answer any questions you might have.

Attachments (0)
Change History (4)

Changed May 12, 2011 06:48PM UTC by ajpiano comment:1

owner: → chuck@chuckadams.net
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, we've created this boilerplate: http://jsfiddle.net/rwaldron/da3nM/ Open the link and click to "Fork" in the top menu.

Changed May 19, 2011 06:00AM UTC by anonymous comment:2

Here is a JsFiddle Demo of the issue. Instruction in Java comments

http://jsfiddle.net/RUQVt/2/

Changed May 19, 2011 02:42PM UTC by timmywil comment:3

component: unfiledattributes
priority: undecidedlow
resolution: → duplicate
status: pendingclosed

Changed May 19, 2011 02:42PM UTC by timmywil comment:4

Duplicate of #9191.