Hey folks,
I have a form to edit a series of rows. On each row there is a list menu that displays an option based on a mySQL value.
I have added a "clear row" button calling a Javascript function which works perfectly...almost.
How can I get the list menu to reset from the selected option to "choose option" which is the default.
I have tried
and a few variations on that without success. Have also tried the "Google Search For Almost Everything", no luck there either.
Thanks in advance.
Steve Davis
NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.
I have a form to edit a series of rows. On each row there is a list menu that displays an option based on a mySQL value.
I have added a "clear row" button calling a Javascript function which works perfectly...almost.
How can I get the list menu to reset from the selected option to "choose option" which is the default.
I have tried
Code:
document.getElementById("field").selectedIndex = document.getElementById("field")[0]
Thanks in advance.
Steve Davis
NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.