I have a custom form in my magento store, and use varienform validation. Everything works fine. But requirement is, I need a clear button so that I can click that button to reset the form inputs including the validation error messages.
the below image is my current form:
after clicking Clear buton it should become like this:
How can I do this? Can anyone help?