myArray = ['aaa', 'bbb', 'ccc']; var arrStr = encodeURIComponent(JSON.stringify(myArray)); $('#myLink').attr({ href: '/myLink?array=' + arrStr });