Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Passing href as ID – missing something here (I did major derp)

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #164213
    shaneisme
    Participant

    Here’s my pen: http://codepen.io/drainpip/pen/nhHaA

    Want to take the .attr('href') and pass it to a function so it can be used by jQuery to look up an element by that ID.

    I’m a little fried right now staring at code for 10 hours and I know I’m missing something.

    I’m getting some unexpected token on the function, I also have no idea what I’m missing there… but when clicking on the links, the href is being passed successfully over…

    I just have a feeling I forgot a comma or something. Thanks.

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.