My requirement is to parse query string, get value of a key.. modify it and add it back in query string.
I am retreving querystring in a variable.
var a_href =  jQuery('#linkHere').attr('href');
lets say my value is something like this : 
a_href = "?position=1&archiveid=5000&columns=5&hash_ref="http://xxx.com"
Now I want to retrieve hash_ref value. Please note that hash_ref is a window.location value, now i need to update it to add window.location.hash value to hash_ref and assign it back to a_href variable.
How can we do this with jQuery?
 
    