Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#log').keyup(function () {
- var login = $("#login").val();
- $.post('/api/?alg=reg&action=save_validation&using=ajax', {login: login}, function (response) {
- if (response) {
- check_login.innerHTML = "<div class='message padd_top_10 padd_bot_10 red'><div><p>ВНИМАНИЕ! имя занято</p></div></div>";
- submit.innerHTML = "";
- } else {
- check_login.innerHTML = "<div class='message padd_top_10 padd_bot_10 yellow'><div><p>Имя свободно</p></div></div>";
- submit.innerHTML = "<div class='button orange'><input type='submit' name='' id= 'btt' value='Выбрать имя'></div>";
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement