check selected option jquery code example
Example 1: get selected option value
var conceptName = $('#aioConceptName').find(":selected").val();
Example 2: jquery check if select option is selected
$(document).ready(function(){
$(".yes").hide();
$(".no").hide();
$("#existing-subscriber").change(function(){
if ( $(this).val() == "Yes" ) {
$(".yes").show();
$(".no").hide();
}
if( $(this).val() == "No" ) {
$(".no").show();
$(".yes").hide();
}
});
});