Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Judging by the fact that the question sounds like an idiot, I dare to assume that you need ajax processing of form submission.
<form id="form_id">
...
<button type="submit">Отправить</button>
</form>
$('#form_id').on('submit', function(e) {
e.preventDeault();
$.post('url_to_handler_action', $( this ).serialize(), function(data) {
alert('Форма отправлена без перезагрузки страницы').
});
return false;
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question