title: How to pass array of values from multiselect into jquery ajax call?
body: <p>I'm using jQuery multiSelect and want to pass the selections to my update script.</p>
  
  <p>Here's my ajax call</p>
  
  <pre><code>var newnotesecurity = $("#nt_newnotesecurity").serializeArray();
  
  $.ajax({
    url: 'notes-savenewnote.php',
    method: 'POST',
    data: {
      cache: false,
      companyid: companyid,
      entitytype: entitytype,
      entityid: entityid,
      noteinitials: newnoteinitials,
      notetext: newnotetext,
      notetags: newnotetags,
      notesecurity: newnotesecurity
    },
    success: function() {
      // blah
    },
    error: function(){
      // blah
    }
  });
  </code></pre>
  
  <p>nt_newnotesecurity is the multiselect object.  Obviously serializeArray is not working for me.  It's just my latest attempt to get this working.</p>
  
  <p>I end up passing in this:</p>
  
  <pre><code>notesecurity[0][name]=nt_newnotesecurity&amp;
  notesecurity[0][value]=2&amp;
  notesecurity[1][name]=nt_newnotesecurity&amp;
  notesecurity[1][value]=14
  </code></pre>
  
  <p>but I'd like to pass in this</p>
  
  <pre><code>nt_newnotesecurity=2&amp;nt_newnotesecurity=14
  </code></pre>
  
  <p>or I'd be just as content to pass in a single value that I can explode later on, like this</p>
  
  <pre><code>notesecurity=2-14
  </code></pre>