Message from JavaScript discussions

November 2017

— Btw guys, is it possible for send multiple data in JSON Ajax under one label ?

— 

In example, i send this

data : {'id': '1','2','3'},


i know this one 100% doesn't work, but atleast i think you can know what i mean with multiple data under one label is.

— If it possible, how to?

— You can send an array

— Hmm?

— { id: [1,2,3,4] }

— Owh i see

— I got it

— Thanks marco

— Btw is it work if it like this?

— What is your context?

— 

JS
{ id: [JSON.parse(localStorage.getItem('product')[0]['id],JSON.parse(localStorage.getItem('product')[0]['id]]}

Message permanent page