How do I make this work? I\'m trying to do AJAX post. i\'m use to doing .serialize but i want to add two more values and keys to the array. how can I do this easily?
I have this HTML: <form id=\'myform\'> <input name=\'title\' value=\'foo\'/> </form> And I create an object array from it like this:
I am trying this new method I\'ve seen serializeArray(). //with 开发者_JS百科ajax var data = $(\"#form :input\").serializeArray();