Skip to content
Advertisement

Eliminate the confirmation alert from the javaScript code

Hello I have this HTML code:

JavaScript

And the javaScript code:

JavaScript

My question is how can I eliminate the confirmation messages? I want my inputs to be save without reloading and without confirming! Can someone help me please? If you will need more details i will tell you all you need! Thanks

Advertisement

Answer

For removes confirmation messages

JavaScript

and the last close bracket of if conditional ‘ } ‘

Success is getting the response of the request if you remove that, the alert and reload will dissapear

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement