Bug Tracker

Opened 10 years ago

Closed 10 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:


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 10 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Duplicate of #13068.

Note: See TracTickets for help on using tickets.