Bug Tracker

Modify

Ticket #9259 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

1.6 breaks my code

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

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.

Change History

comment:1 Changed 2 years ago by ajpiano

  • Owner set to chuck@…
  • Status changed from new to pending

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.

comment:2 Changed 2 years ago by anonymous

Here is a JsFiddle Demo of the issue. Instruction in Java comments  http://jsfiddle.net/RUQVt/2/

comment:3 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to duplicate
  • Status changed from pending to closed
  • Component changed from unfiled to attributes

comment:4 Changed 2 years ago by timmywil

Duplicate of #9191.

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.