Tag Archives: dropdown

How to Group Options in a Select Dropdown List

select-optgroup-example

The classic HTML select dropdown list box has been with us for a long time, consisting of a container <select> tag which in turn contains a number of <option> tags which make up the list items which the user can … Continue reading

Posted in HTML & CSS | Tagged , , , , , | Leave a comment

How to Set the Selected Index of a Dropdown using jQuery

There are a number of ways to set the selected index of a dropdown list when it comes to jQuery, though unfortunately one of them only works about half the time, basically whenever the guys behind the library remember to fix a particular bug in the system for that particular release.
Continue reading

Posted in jQuery | Tagged , , , , , , , | Leave a comment

jQuery: Change the Selected Index of a Dropdown List

To change the selected value, or selected index if you will, of a dropdown list using jQuery is not particularly difficult. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , | 5 Comments

Remove all Listbox and Dropdown List Items with jQuery

Today’s little code snippet is going to look at removing all the options from a select dropdown list or listbox, on the fly and using jQuery. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , , | 3 Comments