Quantcast
Viewing all articles
Browse latest Browse all 87530

Re: Anchor issues using JQuery Mobile

Just to clear up some terminology. An anchor <a> is what we all call a hyperlink. You are referring to the name attribute of the anchor tag.  Named anchors are deprecated but whether you use them or element ID's they work the same.  Not really sure what you posted after your question - can you just post the code?

 

>The first anchor controlled by javascript works correctly,

>but when I add my second anchor and test it it'll go to the

>first anchors position, but a few paragraphs down. If I add a third

>it'll only move the page down a tad bit as if it wasn't moved at all.


Is there enough room for the page to scroll? Links to specific locations within a page work by scrolling the page. If there's not enough height left on the page, it can't scroll and can give the impression that it's not working. Is this what's happening? If not, then you'll need to post the code.


Viewing all articles
Browse latest Browse all 87530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>