get selected option value jquery
var selectedOptionText = $('#mySelectID').find(":selected").text();//selected option text
var selectedOptionVal = $('#mySelectID').find(":selected").val();//selected option valueBY LOVE
$('#ddlName option:selected').val();var conceptName = $('#aioConceptName').find(":selected").val(); $("#mySelect option:selected").html();$("select.country").change(function(){
var selectedCountry = $(this).children("option:selected").val();
alert("You have selected the country - " + selectedCountry);
});$("#vacc_wellness_agegroups option:selected").val();
Also in JavaScript:
- combine values of address line 1 and address line 2 javascript
- remove last comma from string javascript
- javascript change frame background
- jquery empty ul
- react function exec when button is clicked
- check if palindrome
- get selected option value jquery
- javascript difference between two dates in days
- Object destructuring
- keyup function in jquery
- javascript function
- javascript hasownproperty
- http request javascript fetch
- v-for vue
- number counter html
- js get alphabet as array
- decrease touchableopacity in react native
- How to create HTML forms and attach JavaScript behaviors ALL TYPES
- javascript redirect with extra url arguments
- nodejs shebang
- check object has key javascript
- /runtime.d7bbc2cdb230ca3d1157.js
- js replace blogger thumb
- count word and space in text javascript