Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript url pas array

myArray = ['aaa', 'bbb', 'ccc'];
var arrStr = encodeURIComponent(JSON.stringify(myArray));
$('#myLink').attr({ href: '/myLink?array=' + arrStr });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #url #pas #array
ADD COMMENT
Topic
Name
6+4 =