Bug Tracker

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#14734 closed feature (worksforme)

Introduce $(con).$(sel) for context based queries instead of $(sel, con)

Reported by: thalter@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.1.0
Keywords: Cc:
Blocked by: Blocking:

Description

$(selector, context) is not really intuitive. $(context).$(selector) would be much more, jQuery is all about chainging.

Demo

jQuery(context).jQuery(selector) can be supported as well.

Note: jQuery.fn.jquery is in use (lowercase Q), but there is no case-sensitive conflict. Most people use $() anyway.

Best, Tibor Halter

Change History (2)

comment:1 Changed 5 years ago by scottgonzalez

Resolution: worksforme
Status: newclosed

You're looking for .find().

comment:2 in reply to:  1 Changed 5 years ago by thalter@…

Replying to scott.gonzalez:

You're looking for .find().

Many people don't know about it. Additionally, $().$() would lessen what one needs to learn, thus reducing complexity.

Note: See TracTickets for help on using tickets.