cara mendapatkan teks dropdown yang dipilih di jQuery
BY LOVE
$("#Id option:selected").text()
Precious Pigeon
BY LOVE
$("#Id option:selected").text()
$(document).ready(function() {
$("#gate option[value='Gateway 2']").prop('selected', true);
// you need to specify id of combo to set right combo, if more than one combo
});
$('#id option:selected').text()
$("#id option:selected").text();
$( "#myselect option:selected" ).val();
$('select option[value=8272]').attr('selected', '');