Answers for "how to send array in query string in javascript"

0

how to send array in query string in javascript

myArray = ['1', '2', '3'];
var arrStr = encodeURIComponent(JSON.stringify(myArray));
window.location = url + '/?id='+id + '&type=' + myArray;
Posted by: Guest on August-18-2021

Code answers related to "how to send array in query string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language