Answers for "check option selected jquery"

1

jquery selected option

$( "#myselect option:selected" ).val();
Posted by: Guest on July-13-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 option selected

$('.selDiv option:eq(1)').prop('selected', true)
Posted by: Guest on October-01-2020

Code answers related to "check option selected jquery"

Browse Popular Code Answers by Language