Side navigation
#13202 closed bug (duplicate)
Opened January 12, 2013 03:57PM UTC
Closed January 12, 2013 04:53PM UTC
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
});
Attachments (0)
Change History (1)
Changed January 12, 2013 04:53PM UTC by comment:1
| resolution: | → duplicate | 
|---|---|
| status: | new → closed | 
Duplicate of #13068.