Tag: jquery-selectors

58 votes
22 answers
1.2K views
jQuery get specific option tag text

All right, say I have this: <select id='list'> <option value='1'>Option A

avatar
Elicia
0 1 0 9
asked 07 September, 2021
52 votes
14 answers
3K views
How can I select an element by name with jQuery?

I have a table column I’m trying to expand and hide. jQuery seems to hide the <td> elements when I sel

avatar
Vi
0 1 0 9
asked 07 September, 2021
64 votes
19 answers
1.2K views
How can I get the ID of an element using jQuery?

<div id="test"></div> <script> $(document).ready(function() { alert($('#test&apos

avatar
Charis
0 1 0 9
asked 07 September, 2021
52 votes
14 answers
2.9K views
How can I select an element with multiple classes in jQuery?

I want to select all the elements that have the two classes a and b. <element class="a b"> So, only t

avatar
Virgil
0 1 0 9
asked 07 September, 2021
58 votes
19 answers
1.7K views
How to get the children of the $(this) selector?

I have a layout similar to this: <div id="..."><img src="..."></div> and would like to us

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
63 votes
30 answers
1.5K views
Get selected text from a drop-down list (select box) using jQuery

How can I get the selected text (not the selected value) from a drop-down list in jQuery?

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
1.4K views
How can I know which radio button is selected via jQuery?

I have two radio buttons and want to post the value of the selected one. How can I get the value with jQuery?

avatar
Luis
0 1 0 9
asked 07 September, 2021