I have a question about how this.hash works for in page anchor links in jQuery.
I need to process the hash attribute every time the user clicks on that link.
because the selector $(this.hash) finds nothing in the second case, this.hash return #foo and then $("#foo") looks for the element with id foo which in the second case return nothing
$(this.hash)
this.hash
#foo
$("#foo")
foo
http://jsfiddle.net/BQU3u/5/