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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -