Skip to main content

Bug Tracker

Side navigation

#14734 closed feature (worksforme)

Opened January 27, 2014 02:22PM UTC

Closed January 27, 2014 02:25PM UTC

Last modified January 27, 2014 02:31PM UTC

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

Reported by: thalter@zupa.hu 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

Attachments (0)
Change History (2)

Changed January 27, 2014 02:25PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

You're looking for .find().

Changed January 27, 2014 02:31PM UTC by thalter@zupa.hu comment:2

Replying to [comment:1 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.