I have a simple click and show, click and hide button, but when I click it, the page anchors at the top of the page. Is there anyway to prevent this? So that when I click th
If you're using a element don't forget to set the type attribute.
My Button
Some browsers default to submit which will bring you back to the beginning of your page.
It's where I was going wrong anyway and saw nothing here about it so thought I'd share my two cents for future readers.