Top "Jquery-selectors" questions

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

use jQuery's find() on JSON object

Similar to brnwdrng's question, I'm looking for a way to search through a JSON-like object. supposing my object's structure is …

jquery jquery-selectors
jQuery selector for the label of a checkbox

<input type="checkbox" name="filter" id="comedyclubs"/> <label for="comedyclubs">Comedy Clubs</label> If …

jquery checkbox jquery-selectors
What is fastest children() or find() in jQuery?

To select a child node in jQuery one can use children() but also find(). For example: $(this).children('.foo'); …

jquery jquery-selectors
jQuery: How to get to a particular child of a parent?

To give a simplified example, I've got the following block repeated on the page lots of times (it's dynamically generated): &…

jquery jquery-selectors parent siblings
JQuery - how to select dropdown item based on value

I want set a dropdown(select) to be change based on the value of the entries. I have <select …

javascript jquery select jquery-selectors
jQuery - selecting elements from inside a element

let's say I have a markup like this: <div id="foo"> ... <span id="moo"> ... </span&…

jquery jquery-selectors parent-child
jQuery OR Selector?

I am wondering if there is a way to have "OR" logic in jQuery selectors. For example, I know an …

jquery jquery-selectors
Get the selected option id with jQuery

I'm trying to use jQuery to make an ajax request based on a selected option. Is there a simple way …

jquery dom jquery-selectors
How can I detect if a selector returns null?

What is the best way to detect if a jQuery-selector returns an empty object. If you do: alert($('#notAnElement')); …

jquery jquery-selectors
addID in jQuery?

Is there any method available to add IDs like there is for adding a class - addClass()?

jquery jquery-selectors