How to make sure that after validation of the form - at the click of a button, if everything is good, then transfer to the page with confirmation?
Hello, I made it so that when you click on the button, a popup opens. It contains a form (screen below). Question: how to make sure that on JS, after successful validation, clicking on the "Order a call" button closes this popup and opens the second one with a confirmation about ordering a call?
Where ajax is performed, just push the fadeout method to the first modal and fadeIn the second, if you use jquery, if there is enough native class with a display block and that's all, if you use to send axios, put the idea that I described above to you in .thenAnonymous
To place the code, please use CodePen or similar tool. Thanks you!