90
rated 0 times
[
93]
[
3]
/ answers: 1 / hits: 84547
/ 12 Years ago, wed, march 28, 2012, 12:00:00
I got a JavaScript object which I would like to get x-www-form-urlencoded
.
Something like $('#myform').serialize()
but for objects.
The following object:
{
firstName: Jonas,
lastName: Gauffin
}
would get encoded to:
firstName=Jonas&lastName=Gauffin
(do note that special characters should get encoded properly)
More From » jquery