Forums

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

Home Forums JavaScript Appending class to existing class that is the same as $(this) class?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #40766
    Andy Howells
    Participant

    Here be the CodePen: http://codepen.io/andyunleashed/pen/Gsonr

    I’m trying to append a class of active to a div that has the same class as the id of the span being clicked.

    Can’t seem to get this to get working.

    Basically the intention is to click the boxes and then it makes the input boxes appear.

    Any ideas? I can do it manually for each div/span pair but I want to make a single function that covers every one because there will be 7 different div/span pairs.

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