Bug Tracker

Opened 6 years ago

Closed 6 years ago

#13202 closed bug (duplicate)

Selector fails with string passed by $.each

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: git
Keywords: Cc:
Blocked by: Blocking:

Description

Please see this fiddle: http://jsfiddle.net/6Y3e2/

$(.b?).each(function () {

console.log($('.a').find(this).text()); <-- Behaves incorrectly

});

$(b?).each(function () {

console.log($('.a').find('.' + this).text()); <-- Behaves fine

});

Change History (1)

comment:1 Changed 6 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Duplicate of #13068.

Note: See TracTickets for help on using tickets.