jquery build http query string

​var obj = {
        id    : 'myid',
        token : 'sometoken'
    };

alert($.param(obj));

You can use $.param() to create your query-string parameters. This will alert id=myid&token=sometoken.

This function is used internally to convert form element values into a
serialized string representation.

Here is a demo: http://jsfiddle.net/RdGDD/

And docs: http://api.jquery.com/jquery.param

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)