I have following code
<html>
<head>
<script src="jquery.js"></script>
<script>
$(document).ready(function () {
$("#div1").hide();
$("#div2").hide();
});
</script>
</head>
<body>
<div id="div1">This is first Div</div>
<div id="div2">Welcome At 2nd Div </div>
</body>
</html>
the url is index.html. How I can show the #div1 if url is like index.html#div1 and #div2 if url is like index.html#div2
1 Answer