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: |
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
});
Note: See
TracTickets for help on using
tickets.
Duplicate of #13068.