summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newuser.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/newuser.html b/newuser.html
index 7a8128e..75ee858 100644
--- a/newuser.html
+++ b/newuser.html
@@ -10,9 +10,9 @@
$("#username").change(function( obj ){
- alert( "v = " + $("#username").value + "\no = " + obj );
+ alert( "v = " + $("#username").val() + "\no = " + obj.val() );
- $.post( "https://secure.dev.piny.be/piny-validate", { t: "Username", v: $("#username").value }, function( res, stat, req ){
+ $.post( "https://secure.dev.piny.be/piny-validate", { t: "Username", v: obj.val() }, function( res, stat, req ){
alert( "res = " + res + "\nstat = " + stat + "\nreq = " + req + "\nreq.responseText = " + req.responseText );
if ( res ) {
if ( res.ok ) {