Forums

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

Home Forums JavaScript dynamically map button with div

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #201442
    karthic2914
    Participant

    hi all,

    I’m new in the forum. I want to link a button with div dynamically using id’s for example.

    I have two buttons and two div this is been dynamically created if i click the second button it has to go second div if i click first button it first button has to visible. Using pure vanila javascript.

    Here is the codepen http://codepen.io/karthic2914/pen/yNNoKv.

    Thanks in advance

    #201448
    karthic2914
    Participant

    Hi,

    Thank you so much for your reply. I have tried the above solution it was not working. Could you please do me the change in codepen.

    Thanks in advance

    #201450
    karthic2914
    Participant

    :) thanks man just give me the base idea i will try. I changed as a link instead of button how will you map dynamically, Kindly help me

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