slelect2 get selected value code example
Example 1: how to fetch the selected value of dropdown jquery
BY LOVE
$('#ddlName option:selected').val();
Example 2: select box get 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 );