Answers for "selected option handler get value jquery"

1

jquery select change get selected value

$('select').on('change', function() {
  alert( this.value );
});
Posted by: Guest on February-11-2020
-1

jquery selected option value

$(document).ready(function(){
    $("select.country").change(function(){
        var selectedCountry = $(this).children("option:selected").val();
        alert("You have selected the country - " + selectedCountry);
    });
Posted by: Guest on September-11-2020

Code answers related to "selected option handler get value jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language