Forums

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

Home Forums JavaScript How do you display elements on link click? Help!

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

    Hi.
    I have 17 elements on a page. The first 15 are file upload input tags, all with id’s of “img-up-1,” “img-up-2,” “img-up-3,” and so on. The next one is a link that goes nowhere with an id of “img-up-more,” and the last one is a p tag that has an id of “img-up-none.”

    I barely know any jquery, and even scouring the API couldn’t help.

    I want to show the first 2 on page load, and when the link is clicked, I want to show the next 3 (3, 4, and 5), and after that when the link is clicked, I want five more to be added. When all fifteen have been exposed, I want the p tag to display and the link to disappear.

    I would include the code I was trying to work with, but it’s too much of an embarrassment. If you really want it, though, I can include it.

    Thanks for any help!

    -Jamie

    #92140

    Anyone? I’ve been trying to figure it out and I can’t come up with anything.
    -Jamie

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