i wanted to know how do you get
http://wesitename.com#overall
How to make a div show when the link is #overall ?
i wanted to know how do you get
http://wesitename.com#overall
How to make a div show when the link is #overall ?
If the div has an id
with the same name, then this should work:
$("#"+location.hash).show();
location.hash
will get you the hash-value of a url.
use window.location
. On the onLoad event of the page, parse everything after "#" in window.location.toString()
, and act accordingly.