Some times is uselful to have another button like a "cancel" in a form so this is what you have to add to a form:
Great tip, thanks!
It's cleaner to do this without getting javascript involved:
Great tip, thanks!