So I have this as my current data:
data: $(this).serialize()
How can I have that and add another one?
Like
data: {
$(this).serialize(),
test: 'hello'
}
So I have this as my current data:
data: $(this).serialize()
How can I have that and add another one?
Like
data: {
$(this).serialize(),
test: 'hello'
}
More like this:
var serialized = $(this).serialize();
$.ajax({
//...
data: {
serialized: serialized,
text: 'hello'
}