Top "Jquery-selectors" questions

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

Get first matching ancestor containing a specific class

I am trying to iterate to the first ancestor containing the class ‘sys-form-row’. I am able to get the row …

jquery jquery-selectors closest parents
Is there such thing as a relative jQuery selector?

I have a reference to a jquery object with the this variable. I am looking for a way of applying …

jquery jquery-selectors syntactic-sugar
jQuery select and wrap textNode

I want to select the text inside the div element and wrap it with a <b> tag. The &…

javascript jquery jquery-selectors textnode
How to fix the jQuery 1.8 “unsupported pseudo” error?

A plugin I’m using relies on $(':animated'), but since I upgraded to jQuery 1.8.0 this throws an error: Uncaught …

jquery jquery-selectors sizzle gruntjs
how to result the contents of a javascript variable using cheerio (jquery like selectors, but no dom)

There is a large html file with many javascript tags in it. I'm trying to scoop out the contents of …

javascript jquery jquery-selectors cheerio
How to close a jgrowl manually

All, How to close and open a jgrowl manually jQuery("div.jGrowl").trigger("jGrowl.close"); The above code doesnt seem …

jquery jquery-ui jquery-plugins jquery-selectors jgrowl
jQuery multiple selector with $(this)

is there any way to make this work: $(this, '#foo') with that I want to select "this" element and #…

jquery jquery-selectors this getelementbyid multiple-instances
Check if optgroup by id/label exists in jquery?

I have a dropdown, and in another process add optgroups/options to that dropdown, and that part works fine. But …

jquery jquery-selectors optgroup
:nth-of-type() in jQuery / Sizzle?

It surprised me that Sizzle (the selector engine jQuery uses) comes with a built-in :nth-child() selector, but lacks an :nth-of-type() …

jquery jquery-selectors css-selectors selectors-api
Traversing the DOM with jQuery .closest()

What I thought would be an easy one for .closest() to handle turned out not to be (or perhaps I …

jquery jquery-selectors closest