Answer the question
In order to leave comments, you need to log in
Why is the form not submitting in firefox?
Good afternoon. The wonderful firefox browser does not submit the form via ajax. Instead, the page is simply refreshed. Here is the code
$(document).ready(function(){
$("#zayava").submit(function() {
event.preventDefault();
var form_data = $(this).serialize();
$.ajax({
type: "POST",
url: "<?php echo get_template_directory_uri();?>/ufpdf/action-form.php",
data: form_data,
success: function() {
$('.success').fadeIn();
},
error: function() {
$('.error').fadeIn();
}
});
});
});
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