Top "Jquery-selectors" questions

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

Set select option 'selected', by value

I have a select field with some options in it. Now I need to select one of those options with …

jquery jquery-selectors html-select
Get the value in an input text box

What are the ways to get and render an input value using jQuery? Here is one:

html jquery jquery-selectors textinput html-input
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 …

javascript jquery html jquery-selectors radio-button
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?

javascript jquery drop-down-menu jquery-selectors
How can I get the ID of an element using jQuery?

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

jquery jquery-selectors
How to get the children of the $(this) selector?

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

javascript jquery jquery-selectors
How can I select an element by name with jQuery?

Have a table column I'm trying to expand and hide: jQuery seems to hide the td elements when I select …

javascript jquery html dom jquery-selectors
How can I change CSS display none or block property using jQuery?

How can I change CSS display none or block property using jQuery?

jquery jquery-selectors
jQuery how to find an element based on a data-attribute value?

I've got the following scenario: var el = 'li'; and there are 5 <li>'s on the page each with …

jquery jquery-selectors custom-data-attribute
jQuery get specific option tag text

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

javascript jquery jquery-selectors html-select