I have a client-side button that I want to call a
javascript function via onclick.
All I need to do is reset a dropdownlist back to the first
record in the list.
Tried: document.forms['myform'].elements['mydropdownlist'].selectedIndex = 0;
and tried:
document.getElementById("mydropdownlist").selectedIndex = 0
Both cases give me errors at runtime.
What am I missing?
Thanks
javascript function via onclick.
All I need to do is reset a dropdownlist back to the first
record in the list.
Tried: document.forms['myform'].elements['mydropdownlist'].selectedIndex = 0;
and tried:
document.getElementById("mydropdownlist").selectedIndex = 0
Both cases give me errors at runtime.
What am I missing?
Thanks