Is there a easy way to build an ajax query like this with jquery?
http://www.test.com/?value=happy&value=good&value=day
I tried
$.getJSON('http://www.test.com/', {'value': ['happy','good','day']});
but the result becomes http://www.test.com/?value[]=happy&value[]=good&value[]=day
Just for anyone who comes here through search, you can use the traditional
parameter to $.ajax
and set it to true
then you will get:
http://www.test.com/?value=happy&value=good&value=day
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With