jQuery :selected Selector

Example

Hide the selected dropdown list option:

$('.btn1').click(function(){
  $(':selected').hide();
});

Try It Yourself

Definition and Usage

:selected selector selects the <option> elements that are selected.

Syntax

$(':selected')

Tips and Notes

Note:This selector is not applicable to radio buttons or checkboxes. Please use :checked instead.