SyntaxFix
Write A Post
Hire A Developer
Questions
With jQuery you can do this by $.param
$.param
$.param({ action: 'ship', order_id: 123, fees: ['f1', 'f2'], 'label': 'a demo' }) // -> "action=ship&order_id=123&fees%5B%5D=f1&fees%5B%5D=f2&label=a+demo"