Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS get dropdown setting

let element = document.querySelector('select');
element.value; // returns '1' as that’s currently selected
element.value = '2';
Source by careerfoundry.com #
 
PREVIOUS NEXT
Tagged: #JS #dropdown #setting
ADD COMMENT
Topic
Name
7+9 =