Latest web development tutorials

jQuery: selected selector

jQuery selector jQuery selector

Examples

Select the drop-down list of pre-selected items:

$(":selected")

try it"

Definition and Usage

: Selected selector to select a pre-selected option element.

Note: This selection is not available for check boxes or radio buttons.Please use the : checked selector instead.


grammar

$(":selected")


jQuery selector jQuery selector