Skip to main content

Questions tagged [jquery-selectors]

Selectors can be used in jQuery to match a set of elements in a document. Most CSS selectors are implemented, as well as a set of custom ones.

jquery-selectors
188 votes
12 answers
303k views

Count immediate child div elements using jQuery

I have the following HTML node structure: <div id="foo"> <div id="bar"></div> <div id="baz"> <div id="biz"></div> </div> <span></span>...
Dónal's user avatar
  • 186k
6 votes
2 answers
2k views

JQuery selector logic fails if id has '.' in the value. Any solution?

I am using Spring Forms for my web application. For nested properties, the form tag generates the input elements having id / name in form of . For example, Person is the command class and Address is ...
jatanp's user avatar
  • 4,052
1285 votes
23 answers
1.1m views

jQuery get specific option tag text

Suppose I have a drop-down list like: <select id='list'> <option value='1'>Option A</option> <option value='2'>Option B</option> <option value='3'>...
Paolo Bergantino's user avatar
645 votes
10 answers
498k views

How to use a regular expression in a jQuery selector?

I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector. I have looked for this myself but have been unable to find information on ...
Joel Cunningham's user avatar
151 votes
12 answers
80k views

Is there a case insensitive jQuery :contains selector?

Is there a case insensitive version of the :contains jQuery selector or should I do the work manually by looping over all elements and comparing their .text() to my string?
Pat's user avatar
  • 36.6k
46 votes
2 answers
48k views

jQuery match multiple attributes

I have the following markup, and I want to make the All radio button checked. <ul> <li><input type="radio" value="All" name="Foo"/>All</li> <li><input type="...
zadam's user avatar
  • 2,436

15 30 50 per page
1
597 598 599 600
601