select option value jquery
BY LOVE
$("#Id option:selected").text()$("select.country").change(function(){
var selectedCountry = $(this).children("option:selected").val();
alert("You have selected the country - " + selectedCountry);
});$( "#myselect option:selected" ).val();$( "#myselect option:selected" ).text();
// => "Mr"
$('.selDiv option:eq(1)')
Also in JavaScript:
- jquery use variable in string "without" concatenate
- Converting circular structure to JSON
- js date minus 18 years
- jQuery change select value
- validate form in reactstrap modal api
- javascript get timestamp
- javascript cut string
- react native run on device command line
- how to return a string x amount in javascript without using . repeat
- javascript remove uniques from array
- chartjs template jquery html
- android studio react native plugins
- javscript async await explained
- nodejs print
- for loop in javascript
- reactjs web3 components
- computed property in javascript
- javascript convert to array
- js isset
- javascript keep scroll visible
- javascript how to split array into subarrays javascript
- difference between key and code in javascript
- how to make a javascript for loop
- align left text in reactstrap