Answers for "select get selected option"

2

get text selected option jquery

$('#id option:selected').text()
Posted by: Guest on December-16-2019
1

jquery get selected option value

$("select.your-select").change(function(){ 
	$(this).children("option:selected").val();
});
Posted by: Guest on September-10-2020
2

use js to get select value

// reference to 'scripts' select list 
// used throughout the examples below
var sel = document.getElementById('scripts');

// display value property of select list (from selected option)
console.log( sel.value );
Posted by: Guest on February-22-2020

Code answers related to "select get selected option"

Code answers related to "Javascript"

Browse Popular Code Answers by Language