PDA

View Full Version : "Reset" with image instead of button


chelvis
05-07-2003, 07:07 PM
I have a page with text boxes, drop downs and a list box. The value of the list box is dynamic. Meaning if a user checks a check box in a top frame, the word next to it is pasted in the list box below frame. So now I have an image for the reset button. But if I click on the "reset" image, all the other fields (text box become blank, dropdowns become reset) but nothing happens to the list box. I want the list box to be blanked too. How can I do this?

I have to write a function to make the list box empty and then call that with the <a href="#" onClick="document.clipboard.reset()"> javascript?

arnyinc
05-07-2003, 08:51 PM
I don't know what a list box is, if it isn't a dropdown. If you are able to set the value of the list box using the checkbox, just use the same logic to set the value of the list box blank when your reset button is clicked.