Answers for "get the selected value in select"

3

get selected option value jquery

$("#vacc_wellness_agegroups option:selected").val();
Posted by: Guest on October-06-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 "get the selected value in select"

Browse Popular Code Answers by Language