Forums

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

Home Forums JavaScript More than 1 function?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #167629
    justdan
    Participant

    Hey guys,

    I’m trying to make a slick form like I saw online the other day. Basically it starts out with the name field. You fill it out, click the icon, and it loads in the new label and the new input behind the scenes. Unfortunately I’m stuck just a little bit into it. As you can see in the codepen, once you hit the next icon (missing image), it loads my last option and not the next one. How can I structure this so that on each click the new label name will take place and not get written over by the last? I could do this with additional functions, but I really feel like that’s not the best way to achieve this. Sorry if that was explained bad. Any help is greatly appreciated. Thanks guys.

    http://codepen.io/justdan/pen/FforC/

    #167636
    rolodex
    Participant

    Man. I just did something…here you go. Hopefully you’ll benefit from this.
    If the pen below can’t load, here’s the link codepen.io/anon/pen/iIDAf/
    http://codepen.io/anon/pen/iIDAf/

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