Answer the question
In order to leave comments, you need to log in
How to store value in cookie?
I have a form processing script
$(document).ready(function() {
$("#form").submit(function() {
let count = $('#number');
$.ajax({
type: "POST",
url: "order.php",
data: $(this).serialize()
}).done(function() {
count.val(parseInt(count.val())-1);
$("#form").trigger("reset");
});
return false;
});
});
let count = $('#number');
count.val(parseInt(count.val())-1);
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