I want to validate if username exists in database using jQuery.validate so here’s what I have so far: jQuery: check-username.php: This code always shows an error that the username is taken even if it’s not. I’m using jQuery Mobile 1.9.1 Thanks in advance. Answer I’ve managed to get this to work by changing the PHP technique I was using, here’s