Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get dropdown selected value in javascript onchange

function handleSelectChange(event) {

    var selectElement = event.target;
    var value = selectElement.value;
    console.log(value);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dropdown #selected #javascript #onchange
ADD COMMENT
Topic
Name
2+4 =