I want to add extra data after i use $(\'#myForm\').serialize() + extra data
$.ajax({
type: \'POST\',
url: $(\'#myForm\').attr(\'action\'),
data: $(
Personally, I'd append the element to the form instead of hacking the serialized data, e.g.
moredata = 'your custom data here';
// do what you like with the input
$input = $('').val(morevalue);
// append to the form
$('#myForm').append($input);
// then..
data: $('#myForm').serialize()
That way, you don't have to worry about ? or &