I am building a dynamic website using jQuery and Ajax. I want to read the id after the hash in the following URL:
something.php#type=abc&id=123
My current code to read hash value is:
var hash = location.hash.substr(1);
alert(hash);
I am building a dynamic website using jQuery and Ajax. I want to read the id after the hash in the following URL:
something.php#type=abc&id=123
My current code to read hash value is:
var hash = location.hash.substr(1);
alert(hash);
You can do something like this:-
And same for other params if any. Hope this helps.