Answer the question
In order to leave comments, you need to log in
How to validate fields before onclick?
There is a form, it has 2 required fields (there is a required tag).
The data is sent on the onclick event of the button via ajax.
Is there any way to combine form validation with html and data transfer via ajax?
Naturally, there is to remove the processing of pressing the button with js, then the form is validated by html and everything is buzzing.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question