Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #selected #option
ADD COMMENT
Topic
Name
2+6 =