Answer the question
In order to leave comments, you need to log in
AJAX not working?
Hi all!
Ajax is not working for me
Here is the code:
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
// в файле js
$.ajax({
url: "http://sait/pages/profil.php",
type: "POST",
data: {ok: 'ok'},
complete: function() {alert('+');},
error: function() {alert('-');},
BeforeSend: function() {alert('-');}
});
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