Skip to main content

All Questions

Tagged with
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?
haddar's user avatar
  • 25.6k
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">...
William Kinaan's user avatar
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 ...
Jon Tackabury's user avatar
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 ...
php-dev's user avatar
  • 7,106
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
flesh's user avatar
  • 23.9k
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?
flesh's user avatar
  • 23.9k
39 votes
9 answers
88k views

Keep Bootstrap Dropdown Open When Clicked Off

If the dropdown is visible, and I click outside the dropdown it closes. I need it to not close. From the documentation: When opened, the plugin also adds .dropdown-backdrop as a click area for ...
kleban's user avatar
  • 529
16 votes
8 answers
221k views

Drop-down box dependent on the option selected in another drop-down box

I have 2 different SELECT OPTION in a form. The first one is Source, the second one is Status. I would like to have different OPTIONS in my Status drop-down list depending on the OPTION selected in ...
samyb8's user avatar
  • 2,588
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> ...
dotty's user avatar
  • 41.1k
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 ...
user670800's user avatar
  • 1,117
7 votes
1 answer
12k views

How to populate second dropdown based on selection of first dropdown using jQuery/AJAX and PHP/MySQL?

I am trying to create a dynamic set of dropdown boxes, using jQuery/AJAX and PHP/MySQL. The first dropdown box will be populated when the page loads based on values from a database. The second ...
Michael's user avatar
  • 2,286
17 votes
2 answers
16k views

How to get Interdependent dropdowns in django using Modelform and jquery?

I am new to django and jquery. I am working on a django-based app where I have 3 drop downs in a form. 1. Campus 2. School 3. Centre The hierarchy is Campuses have schools and schools have ...
escapee's user avatar
  • 423
8 votes
6 answers
29k views

Trigger click on select box on hover

I'm trying to have a select box automatically pop open when the use hovers over it, as if they had clicked it. Is this possible? I would think I could do this easily with jQuery... $("#settings-...
daGUY's user avatar
  • 28.2k
27 votes
4 answers
119k views

How to populate a dropdownlist with json data in jQuery?

I am developing a country state cascading dropdown list... I returned JSON result based on countryId but I don't know how to populate/fill it in a new dropdown listbox... Here is what I am using, ...
ACP's user avatar
  • 35.1k
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"&...
ARUN P.S's user avatar
  • 1,713

15 30 50 per page
1
2 3 4 5
27