How to pass an array of id's as parameters for a delete request in javascript
<p>I have an array of id's whihc i want to append to a delete request.
How should i append the params to the url request?</p>

<p>var deleteArray = ['1', '5', '6'];</p>

<p>if i want to send a request in this format <a href="http://localhost/xxx/employees?ids=1&amp;ids=5&amp;ids=6" rel="nofollow">http://localhost/xxx/employees?ids=1&amp;ids=5&amp;ids=6</a>   for delete</p>

<p>How do i parse the array contents to build the <strong>ids=1&amp;ids=5&amp;ids=6</strong> for the request url for delete?</p>

<p>My concern is the "&amp;" , how could i append "&amp; and build the string for the url request in javascript</p>