Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

selected option using javascript

const changeSelected = (e) => {
  const $select = document.querySelector('#mySelect');
  $select.value = 'steve'
};
Source by alvarotrigo.com #
 
PREVIOUS NEXT
Tagged: #selected #option #javascript
ADD COMMENT
Topic
Name
3+3 =