All Questions
Tagged with jquery drop-down-menu
4,509
questions
2534
votes
35
answers
2.4m
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?
1422
votes
37
answers
2.3m
views
jQuery Get Selected Option From Dropdown
Usually I use $("#id").val() to return the value of the selected option, but this time it doesn't work.
The selected tag has the id aioConceptName
html code
<label for="name">...
398
votes
40
answers
493k
views
Avoid dropdown menu close on click inside
I have a Twitter Bootstrap dropdown menu. As all Twitter Bootstrap users know, the dropdown menu closes on click (even clicking inside it).
To avoid this, I can easily attach a click event handler on ...
383
votes
18
answers
875k
views
How can I set the value of a DropDownList using jQuery?
As the question says, how do I set the value of a DropDownList control using jQuery?
304
votes
12
answers
484k
views
How do I add options to a DropDownList using jQuery?
As the question says, how do I add a new option to a DropDownList using jQuery?
Thanks
177
votes
14
answers
460k
views
How to use jQuery to select a dropdown option?
I was wondering if it’s possible to get jQuery to select an <option>, say the 4th item, in a dropdown box?
<select>
<option></option>
<option></option>
...
121
votes
10
answers
185k
views
How do I check how many options there are in a dropdown menu?
How do I check, using jQuery, how many options are there in a drop down menu?
Thanks.
94
votes
11
answers
228k
views
set dropdown value by text using jquery [duplicate]
I have a dropdown as:
<select id="HowYouKnow" >
<option value="1">FRIEND</option>
<option value="2">GOOGLE</option>
<option value="3">AGENT</option><...
90
votes
11
answers
311k
views
Enable/Disable a dropdownbox in jquery
I am new to jQuery and I want to enable and disable a dropdown list using a checkbox. This is my html:
<select id="dropdown" style="width:200px">
<option value="feedback" name="aft_qst"&...
90
votes
14
answers
170k
views
Can I open a dropdownlist using jQuery
For this dropdownlist in HTML:
<select id="countries">
<option value="1">Country</option>
</select>
I would like to open the list (the same as left-clicking on it). Is this ...
79
votes
7
answers
200k
views
jQuery to remove an option from drop down list, given option's text/value
I have a drop down list and would like to remove an option from it, given the text/value of that particular option. Is it possible using jQuery? Just like 'append' which adds an option to the drop ...
71
votes
3
answers
137k
views
jQuery add blank option to top of list and make selected to existing dropdown
So I have a dropdown list
<select id="theSelectId">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes&...
67
votes
7
answers
172k
views
jQuery drop down menu closing by clicking outside
I am developing a simple dropdown menu with jQuery . When a user press on a trigger area, it will toggle the dropdown area. My question is how to have a click event outside of the dropdown menu so ...
53
votes
5
answers
126k
views
Get text of the selected option with jQuery [duplicate]
I have a select box with some values. How do I get the selected options text, not the value?
<select name="options[2]" id="select_2">
<option value="">-- Please Select --</option&...
52
votes
7
answers
58k
views
How do I use jQuery to select all children except a select element
I have a div (let's say the id is "container") with many elements in it, including a select element. I'd like to select all everything in the div except the select.
Things I've tried:
$("#container *...