I have an issue while using buttons inside form. I want that button to call function. It does, but with unwanted result that it refresh the page.
My simple code goes
All you need to do is put a type tag and make the type button.
Hide/Show
That solves the issue