Answer the question
In order to leave comments, you need to log in
How to fulfill a JavaScript condition?
What should be written in success, so that if the auth2.php file returns 1, then the page would be updated.
$(document).ready(function(){
$('#myForm').submit(function(){
$.ajax({
type: "POST",
url: "auth2.php",
data: "phone="+$("#phone").val(),
success:
});
return false;
});
});
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