1

I have a text like this'?category=1,2&brand=1' how can I change this text into this '?categories[]=1&categories[]=2&brands[]=1' ?

Ruslan Bairamovi
  • 378
  • 3
  • 22

1 Answers1

0

pass parameter like: ?category=[1,2]&brand=1

get using : JSON.parse();

qɐʇǝɥɐW
  • 347
  • 3
  • 17