diff options
-rw-r--r-- | newuser.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/newuser.html b/newuser.html index 75ee858..c531bcf 100644 --- a/newuser.html +++ b/newuser.html @@ -8,11 +8,9 @@ $("#pass2-row").show(); - $("#username").change(function( obj ){ + $("#username").change(function(){ - alert( "v = " + $("#username").val() + "\no = " + obj.val() ); - - $.post( "https://secure.dev.piny.be/piny-validate", { t: "Username", v: obj.val() }, function( res, stat, req ){ + $.post( "https://secure.dev.piny.be/piny-validate", { t: "Username", v: this.val() }, function( res, stat, req ){ alert( "res = " + res + "\nstat = " + stat + "\nreq = " + req + "\nreq.responseText = " + req.responseText ); if ( res ) { if ( res.ok ) { |