Answer the question
In order to leave comments, you need to log in
Am I sending the request correctly?
var name = $('#name').val();
$.ajax({
url: "/api/user.php?action=getlogin&username=name",
success: function(data) {
console.log(data);
var data = data;
if (data == '{status: 1}') {
alert('OK');
}
}
});
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