I have been trying, unsuccessfully, to have a dropdown list default to a specific option. In this case the dropdown is a list of months and I want the current month to be the selected item. I have tried to select the correct option via the:
document.getElementById("listID").selectedIndex
but...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.