JQuery + Ajax send username with dots? -
i'm trying send username dots through ajax can't find way successfully, code:
$.ajax({ type: "post", url: 'access.php', data: {username: $('#'+username.replace(".", "\\.")).show()).val(), password: $('#password').val()}, success: function(data){ // use data } });
in html form username input "mike.smith"
hope can me this, in advance! :)
try this:
$.ajax({ type: 'post', url: 'access.php', data: { username: $('#username').val(), password: $('#password').val()}, success: function(data) { // ... } }
at least that's i'm guessing you're trying do
Comments
Post a Comment