jquery ajax pass data which has multiple value with the same key

Viewed 2853

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

2 Answers
Related