Skip to main content

Bug Tracker

Side navigation

#6875 closed bug (invalid)

Opened August 05, 2010 05:13PM UTC

Closed August 06, 2010 12:01AM UTC

Selector and unexpected behavior

Reported by: jas Owned by:
Priority: Milestone: 1.4.2
Component: selector Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

The problem, when using a nested group of input elements which get created dynamically I am encountering a strange behavior in regards to using selectors.

Please see attached regarding test cases.

Attachments (2)
Change History (3)

Changed August 05, 2010 05:26PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

Please debug this on the forum and open a more specific bug, thanks.

Changed August 05, 2010 05:41PM UTC by jas comment:2

resolution: invalid
status: closedreopened

It has been.

In regards to specifics:

1. On a click event a new row of form elements are created with a conventional array naming scheme. (row1: txt[0][item1], txt[0][item2], row2: txt[1][item1], txt[1][item2])

2. On same click event a wildcard selector is used to loop over each new row element assigning a bind event.

3. During the blur bind event a replacement is done on the currently selected form element and assigned to a new variable to be used within a secondary wildcard selector.

The problem is the secondary selector returns an empty object. However upon testing and verification the wildcard selector used is accurate.

Changed August 06, 2010 12:01AM UTC by dmethvin comment:3

resolution: → invalid
status: reopenedclosed

It looks like the thread is still going on, and the "test case" is too large to show whatever problem is implied by the vague title "Selector and unexpected behavior".

There are a lot more people on the forum to help solve a problem like this, when you have a lot of code and it's not clear the problem is a bug in jQuery. This area is for reporting bugs in jQuery.

Just leave this ticket closed, and open a new one *when you have a clear description and test case that demonstrates a bug.*

Here is an example: