View Single Post
Old 07-25-2009, 09:05 PM   PM User | #1
510carlos
New Coder

 
Join Date: Jul 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
510carlos is an unknown quantity at this point
ajax - Get value in field before submit

I want to got to page with AJAX and get the value that is in the field because i want to get the value and add my value also.

this is what i have so far:

$.ajax({
type: "POST",
url: "file.php",
async: false,
beforeSend: function(msg){
var i = $(msg).find('[name*=user]').attr('value');
console.log(i);

},
success: function(msg){
alert("sucess");
}
});
510carlos is offline   Reply With Quote