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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -