Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript url pas array

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

PREVIOUS NEXT
Code Example
Javascript :: jshint ignore line 
Javascript :: cookie options 
Javascript :: enviar formulario por ajax 
Javascript :: function inside object javascript 
Javascript :: initialize function in javascript 
Javascript :: includes method javascript 
Javascript :: grayscale image in canvas 
Javascript :: javascript split string by multiple characters 
Javascript :: Multiple children were passed to <Link with `href` of `/escritorio/opcion1` but only one child is supported 
Javascript :: join 2 array in javascript 
Javascript :: converting object to an array in javascript 
Javascript :: short string javascript 
Javascript :: javascript clear child elements 
Javascript :: css on javascript 
Javascript :: npm react dropdown 
Javascript :: what is jquery 
Javascript :: array.from js 
Javascript :: i want to redirect to main page from iframe javascript 
Javascript :: object.fromentries 
Javascript :: js - change div height on scroll 
Javascript :: empty input field on click 
Javascript :: htpp code 
Javascript :: args slice discord.js 
Javascript :: how to give css style in javascript 
Javascript :: javascript array split empty string 
Javascript :: add 2 for hours in date timestamp js 
Javascript :: next day date javascript 
Javascript :: jquery with npm in laravel 
Javascript :: convert timestamp to time javascript 
Javascript :: jquery onclick anchor tag scroll to div with exact position 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =