Top "Jquery-selectors" questions

Selectors can be used in jQuery to match a set of elements in a document.

Efficient, concise way to find next matching sibling?

Sticking to the official jQuery API, is there a more concise, but not less efficient, way of finding the next …

jquery jquery-selectors
Get iframe contents with a jquery selector

Is there anyway to access an iframe's contents via a selector? Something like this: $("iframe::contents .my-foo") I'm constantly accessing …

jquery iframe jquery-selectors sizzle
Inefficient jQuery usage warnings in PHPStorm IDE

I recently upgraded my version of PHPStorm IDE and it now warns me about inefficient jQuery usage. For example: var …

jquery jquery-selectors performance
Traversing td/tr with jquery's closest()

<td width="162"><span class="required">*</span> Name:</td> <td width="407"> &…

jquery jquery-selectors closest
jQuery selector not this child

Is there any way to attach a click event to several elements, and then have all children to the element, …

jquery jquery-selectors click children
Chaining jQuery selectors :lt and :gt

I have a table with more than 9 rows. If I do this : $('table tr:gt(3):lt(6)'), shall I receive 3 …

jquery jquery-selectors chaining
jQuery click() event catch-all?

we're showing a box on the screen that I want to hide when the user clicks anywhere on the screen, …

jquery jquery-selectors jquery-click-event
How to select the second Class element using jQuery working with Spock/Geb

I have done a lot of research to find out the answer for the following to no avail. I have …

jquery jquery-selectors spock geb
Select all not disabled input buttons

Can I in some way select all input submit elements that are not disabled? I can easily find all the …

jquery jquery-selectors disabled-control
jQuery equivalent of querySelector

What is the jQuery equivalent of querySelector? The only way I've found so far is to select all then pick …

javascript jquery jquery-selectors selectors-api