jquery query parameter parsing – “=” in query string breaks query string up

I’m trying to parse parameters from a query string using this jquery plugin and this sample query string:


Using the code for the plugin:

console.log($  .getQueryParam( "cid" ));

The cid gets divided at the first instance of the “=” sign – so instead of:


I get


Is this normal behavior? Does the equals sign do something in particular in this query string? If not, how do I parse this query string so that I get the entire parameter?

newest questions tagged jquery – Stack Overflow

About Admin