D
D
DiseaseC2020-05-15 10:27:17
JavaScript
DiseaseC, 2020-05-15 10:27:17

Is there an equivalent for submit(), but only for non-form blocks?

There is a need to hang captcha not on the form, but on the block. It is possible to do this, but how would one replace the submit function where it should submit the form?
document.getElementById("my-element").submit();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Ivanov, 2020-05-15
@DiseaseC

Yes, put a handler on a button click, then check the data. Send data with ajax instead of submit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question