Last active
December 20, 2015 07:38
-
-
Save 2hamed/6094339 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
$('#your_text_field').blur(function(){ | |
var username = $(this).val(); | |
var params = 'username='+username; | |
$.post('available.php', params, function(data){ | |
//اینجا کدهای مربوط به موفقیت و عدم موفقبت رو قرار بدید | |
if(data == '1'){ | |
// successful | |
}else{ | |
// unsuccessful | |
} | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment