diff options
-rw-r--r-- | newuser.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/newuser.html b/newuser.html index 41fe969..000976b 100644 --- a/newuser.html +++ b/newuser.html @@ -5,7 +5,22 @@ <script type="text/javascript"> $(document).ready(function(){ + $("#pass2-row").css( "display", "block" ); + + $("#username").change(function( obj ){ + + $.post( "https://secure.dev.piny.be/piny-validate", { t: "Username", v: obj.value }, function( data ){ + var res = $.parseJSON( data ); + if ( res.ok ) { + $("#username-error").removeClass( "error" ).html( "" ); + } else { + $("#username-error").addClass( "error" ).html( res.msg ); + }; + } ); + + }); + }); </script> |