/ Published in: JavaScript
URL: www.CordSlatton.com
Very useful for changing the selected option in a select dropdown
Expand |
Embed | Plain Text
var foo = document.getElementById('yourSelect'); if (foo) { if (foo.selectedIndex != null) { foo.selectedIndex = 0; } }
You need to login to post a comment.
