Forum Moderators: open

Message Too Old, No Replies

Focus on hidden div issue

         

Bluesprocket

4:44 am on Sep 14, 2009 (gmt 0)

10+ Year Member



Ok I have a hidden div that shows when you click on the link but the div is at the bottom of the page and customers to the page cant see that the div is showing when they click....is there a way to have it jump to the hidden div when it is shown? Any help would be appreciated. Thanks!

daveVk

4:59 am on Sep 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Place a name anchor in or near hidden div

<a name="label">...</a>

On the link the unhides the hidden div
<a href="#label">...</a>

You assumably have some onlick handling on above (to unhide) unsure it returns true so the href is actioned.

Bluesprocket

5:20 am on Sep 14, 2009 (gmt 0)

10+ Year Member



Yes...I tried this and it worked... there was a 'return false' in the link...had to take that out and it works now....Thanks!