Answers for "jquery check selected option"

2

get text selected option jquery

$('#id option:selected').text()
Posted by: Guest on December-16-2019
3

get selected option value jquery

$("#vacc_wellness_agegroups option:selected").val();
Posted by: Guest on October-06-2020
1

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();
        }
     
    }); 
	
});
Posted by: Guest on April-14-2021
0

jquery: get selected option of the drop down list

$('#ddlID').val();
$('#ddlID').text();
Posted by: Guest on June-28-2020

Code answers related to "jquery check selected option"

Code answers related to "Javascript"

Browse Popular Code Answers by Language