0 votes
352 views
in jQuery by

How do you find all selected options of HTML select tag in jquery?

1 Answer

0 votes
by (4.4k points)

To use "attribute" selector in combination of ":selected" selector, which returns only selected options.

See following jQuery selector to retrieve all selected options of <select> tag with multiple=true :

$('[name=NameOfSelectedTag] :selected')

 

Share:- Whatsapp Facebook Facebook


Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...