3

I'm having trouble getting <a href="#"> to follow the link when jQuery is activated.

<ul>
    <li class="menuOption"><a href="#"></a>Home</li>
    <li class="menuOption"><a href="#"></a>About</li>
</ul>

I looked at a few posts but they involve people trying to prevent a link being followed by using preventDefaults(); in the .js file. I'm not sure what my solution would be.

insertusernamehere
  • 23,204
  • 9
  • 87
  • 126
vitamike
  • 123
  • 1
  • 15
  • Possible duplicate of [How to change the href for a hyperlink using jQuery](http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery) – Amar Singh Jan 13 '16 at 12:55
  • 9
    To follow which link? There are no links – StudioTime Jan 13 '16 at 12:56
  • Does it work when jQuery is not activated? – yılmaz Jan 13 '16 at 12:59
  • can you give us an example of what you are looking for? – vijayP Jan 13 '16 at 13:03
  • i just had another try. It doesn't work when jQuery is not activated. It doesn't work period. (having substituted the '#' with https://www.google.com) -it appears its not being viewed as a hyperlink. just plain text – vitamike Jan 13 '16 at 13:08
  • 2
    Try putting something in your anchors. There's nothing to click on right now. Perhaps you meant to wrap the text inside the a tags. – Phil Jan 13 '16 at 13:09
  • 1
    @vitamike You meant to write `
  • ` String needs to be inside the tags. – MasNotsram Jan 13 '16 at 13:10
  • @MasNotsram thanks-- I'm wholeheartedly embarrassed by the solution, but that was it. – vitamike Jan 13 '16 at 13:17