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
Let getData() return false. This will fix it.
getData()
Click