jQuery onClick GoTo ID or Class -
for odd reason header gets messed when click on tag go id. instead there way use jquery this, such click(), goto id?
<a href="#allreviewstop">read reviews (1)</a> <div style="height:1500px;"> long stuff</div> <div id="allreviewstop"> reviews go down here</div>
this page i'm dealing click here
$("div").click(function() { window.location.hash = "#"+$(this).attr("id"); }
is you're after?
[edit] can't remember if need # or not. try without if doesn't work.
Comments
Post a Comment