I'd like to make sure my form is cleared/reset whenever the page is reloaded, so I added some initial JavaScript. Some of it works, and some doesn't.
Clearing checkboxes does not work, so I'm hoping someone can explain what I'm doing wrong. Here's the syntax I'm using:
document.getElementById('shortname').checked = false;
I also want to reset comboboxes to the first element, but my JavaScript for that doesn't work either:
document.getElementById('shortname').selectedIndex = 0;