jquery get selected option value on change code example
Example 1: .on change get value
$('select').on('change', function() {
alert( this.value );
});
Example 2: get selected option value
var conceptName = $('#aioConceptName').find(":selected").val();
Example 3: jquery dropdown selected value show field
jQuery(document).ready(function() {
jQuery("#carm3").change(function() {
if (jQuery(this).val() === 'other'){
jQuery('input[name=other_interest]').show();
} else {
jQuery('input[name=other_interest]').hide();
}
});
});