:checked Selector

:checked Selector

checked selector

Description: Matches all elements that are checked or selected.

  • version added: 1.0jQuery( ":checked" )

The :checked selector works for checkboxes, radio buttons, and options of select elements.

To retrieve only the selected options of select elements, use the :selected selector.

 

 

 

 

posted @ 2020-05-18 16:08  ChuckLu  阅读(120)  评论(0编辑  收藏  举报