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' ?

1 Answers1

0

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

get using : JSON.parse();

Mahetab
  • 169
  • 1
  • 14