Answers for "get index of selected option javascript"

1

get index of selected option javascript

$("#sel").attr("selectedIndex")
// or
$("#sel")[0].selectedIndex
//or
$(this).prop('selectedIndex')
Posted by: Guest on October-28-2020

Code answers related to "get index of selected option javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language