Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

select option value jquery

$("select.country").change(function(){
  var selectedCountry = $(this).children("option:selected").val();
  alert("You have selected the country - " + selectedCountry);
});
 
PREVIOUS NEXT
Tagged: #select #option #jquery
ADD COMMENT
Topic
Name
4+2 =