Project Description
Easily add additional query string parameters to HTML anchor elements.

Examples:
Initital markup: <a href="SomePage.html">Some page</a>
Code: $("a").hrefQueryString({ a: 1, b: "b" });
Result: <a href="SomePage.html?a=1&b=b">Some page</a>

Initital markup: <a href="SomePage.html?a=1">Some page</a>
Code: $("a").hrefQueryString({ a: 2, b: "b" });
Result: <a href="SomePage.html?a=2&b=b">Some page</a>

Initital markup: <a href="SomePage.html">Some page</a>
Code: $("a").hrefQueryString("a=1&b=b");
Result: <a href="SomePage.html?a=1&b=b">Some page</a>


Also avaliable as a NuGet package.

Last edited Dec 26, 2011 at 11:25 AM by mauricedb, version 5