W
W
WarriorKodeK2018-02-11 18:08:35
JavaScript
WarriorKodeK, 2018-02-11 18:08:35

How to add a button when clicked only once?

Hey guys. Tried different ways to do it does not work. I need something when I click on the button to create 2 buttons (Remove, Start), but only once, and not like mine 2.
Please tell me how to arrange this?
Code - https://codepen.io/Slasher_/pen/rJygPZ?editors=1010
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-02-11
@WarriorKodeK

Just add a check to see if you've already created these buttons or not.

if (кнопок_еще_нет) {
  добавить
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question