I have a form that I can post all the data in the ajax call like this:
data: $(\"#myform).serialize(),
But in the function, I set a variable to
The serialize() method return a parameter string, so you could just use string concatenation like
serialize()
data: $("#myform").serialize() + '&favorite=' + favorite