Tutorials References Exercises Bootcamps Videos Menu
Sign Up Create Website Get Certified Upgrade

jQuery :selected Selector

❮ jQuery Selectors


Select the pre-selected item(s) in a drop-down list:

Try it Yourself »

Definition and Usage

The :selected selector selects option elements that are pre-selected.

Note: This selector will not work on checkboxes or radio buttons. Use the :checked selector instead.



❮ jQuery Selectors