iemand die ziet wat er verkeerd is aan dit?
$("#register").click(function(){ username = $("#username").val(); password1 = $("#password1").val(); password2 = $("#password2").val(); $.ajax({ type: "POST", url: "register.php", data: "username="+username+"&password1="+password1+"&password2="+password2, datatype: 'text', succes: function(data){ $("#result").html(data); } beforeSend:function(){ $("#result").html("Loading...") } }); });