Monday, August 21, 2017

Set which option is showing at a select list with Plain-Jane JavaScript.

var foo = document.getElementById('Foo');
foo.selectedIndex = 0;

No comments:

Post a Comment