On 20/10/06, Luke Lutman <[EMAIL PROTECTED]> wrote:
> Is there a jQuery method or plugin for parsing the browser's query string
> into an object?
>
> I looked through the api and did a bit of searching around, but no luck ...
>
> Thanks,
> Luke
>
> --
> zinc Roe Design
> www.zincroe.com
> (647) 477-6016
You don't need jQuery for that. You can get the query string by using
'location.search'.
if(location.search.length !=0)
{
// create an array
var qs = location.search.substr(1).split("&");
// get first parameter value
alert(qs[0].split("=")[1]);
}
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/