Top "Jquery-selectors" questions

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

What JQuery selector excludes items with a parent that matches a given selector?

I have var $set = $('.foo,.bar').filter( function() {return $(this).parents('.baz').length < 1;}); as a way to …

jquery jquery-selectors css-selectors
JQuery - Select image by alt or title

Hello I need this JQuery to run for the image bellow it. But here's the trick I need to select …

jquery jquery-selectors image alt
Is there a way to combine $(this) with :nth-child?

I'm in the middle of an .each iteration and wanted to call out the 2nd or 3rd child for the …

jquery jquery-selectors dom-traversal
Should all jquery events be bound to $(document)?

Where this is coming from When I first learned jQuery, I normally attached events like this: $('.my-widget a').click(…

javascript jquery jquery-selectors jquery-on
jQuery: Given a selector, find only its visible elements

This should be an easy one. I have a variable that I've already declared called $listItems. The declaration looks like …

jquery jquery-selectors hidden
How to find elements that match multiple conditions

What I need to do is find all a elements on the page that contain "tag" in the href property …

jquery jquery-selectors dom-traversal
jQuery select a div with a certain class, that doesn't have another class

<div class="fuu"> ... </div> <div class="fuu no"> ... </div> ... How can I …

javascript jquery css jquery-selectors
Why jQuery ui tabs are not working?

I found the same question here jquery ui tabs not working but it didn't help me. This is my HTML …

jquery jquery-ui jquery-selectors jquery-ui-tabs jquery-ui-theme
Cheerio: How to select element by text content?

I have some HTML like this: <span id="cod">Code:</span> <span>12345</span&…

javascript jquery-selectors cheerio
Why clicking on checkbox does not add the attribute checked='checked'

When I click a checkbox, why does checked attribute is not getting added?. You can see the code here http://…

javascript jquery html jquery-selectors jquery-events