jquery check selected option code example
Example 1: get text selected option jquery
$('#id option:selected').text()
Example 2: how to fetch the selected value of dropdown jquery
BY LOVE
$('#ddlName option:selected').val();
Example 3: get selected option value
var conceptName = $('#aioConceptName').find(":selected").val();
Example 4: get selected option value jquery
$("#vacc_wellness_agegroups option:selected").val();
Example 5: jquery: get selected option of the drop down list
$('#ddlID').val();
$('#ddlID').text();
Example 6: 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();
}
});
});