Code Snippet: How to get the value of a query string using the SPServices jQuery Library
September 9th, 2011
Marc Anderson’s SPServices jQuery Library is a fantastic resource for the developer. Using his SPGetQueryString function, you can easily get the value of a query string parameter with only two lines of code:
var qsParams = $().SPServices.SPGetQueryString(); var qsValue = qsParams["ID"]; |
The SPServices jQuery Library can be found on CodePlex.
