Javascript AJAX function not working properly
- by Or W
I have a function that sends a GET request to a php script and checks if the script returned any output. It works great, but when I try to add another function that checks for something similar, both of them fail. What am I missing?
function checkUsername(usr,n) {
var user = usr.val(), xmlhttp;
//var str =…