title: Adding/push() Values to Ajax POST in jQuery serialize() or serializeArray()
body: <p><strong>jQuery</strong></p>
  
  <pre><code>$('#speichern').live('click' , function () {
   //  [a]  var data_save = $('#form_rechn').serializeArray();
      var data_save_ser = $('#form_rechn').serialize(); //[b]
  //  [a]  data_save[data_save.length] = {"name":"action","value":"save" },{"name":"total","value": Number($('#grandTotal').text().replace(/EUR/g, ""))};
      var addintional = 'action=save&amp;mysql=update' + '&amp;' + 'total=' + Number($('#grandTotal').text().replace(/EUR/g, ""));//[b]
      var data_save = data_save_ser + '&amp;' + addintional;//[b]
      $.ajax({ 
      type    : "POST",
      cache   : false,
      url     : 'invoice_new_action.php',
      data    : data_save,
       error:function (xhr, ajaxOptions, thrownError){
                  alert(xhr.status);
                  alert(thrownError);
       },
      success : function(data) { 
          $.fancybox(data); 
              }
      });
      });
  </code></pre>
  
  <p>The [b]-part works very well; however, why does not work the [a]-part? This is not pushed:
                  <code>,{"name":"total","value": [..]</code></p>
  
  <p><strong>php Ouput via  print_r ($_POST)</strong></p>
  
  <p>[b]-version </p>
  
  <p><code>Array ( [pnr_item_1] =&gt; 1 [pkt_item_1] =&gt; HostingXXL [desc_item_1] =&gt; 20GB, 1x.de [qty_item_1] =&gt; 4 [price_item_1] =&gt; 15.5 .... [action] =&gt; save [mysql] =&gt; update [total] =&gt; 62 )</code></p>
  
  <p>[a]-version </p>
  
  <p><code>Array ( [pnr_item_1] =&gt; 1 [pkt_item_1] =&gt; HostingXXL [desc_item_1] =&gt; 20GB, 1x.de [qty_item_1] =&gt; 4 [price_item_1] =&gt; 15.5 .... [action] =&gt; save )</code></p>
  
  <p>Hopefully my problem/question is clear.
  What is the best method?
  There are better methods to so id?</p>