title: passing to ajax an array from multiple selected dropdown
body: <p>this is my Jquery:   </p>
  
  <pre><code>$('#Save').click(function () {
    var realvalues = new Array(); //storing the selected values inside an array
  
    $('#Privilege :selected').each(function (i, selected) {
      realvalues[i] = $(selected).val();
    });
  
    $.ajax({
      type: "POST",
      traditional: true,
      url: "http://localhost:8081/crownregency/UpdateOrCreateOrDeleteUser.php",
      data: {
        Privilege: realvalues,
        ID: '1'
      },
      success: function (data) {
        alert(data, 'Status');
        location.reload();
      }
    });
  });
  </code></pre>
  
  <p>this is my php.</p>
  
  
  
  <p>I have read quiet a lot about serializing but doesnt seem to work, what i am trying to achieve is sending the selected items of a dropdown into an array and sending it to a php through ajax. but sending the array to the php doesnt seem to work. help anyone?</p>