Hello! There are two buttons: 1 button: Starts the timer

<button id='111' onclick='onClick();'>Получить балл</button> <span id='time'></span> 

2 button: Accrues Points after clicking and immediately starts the timer

 <div id='example' style=' display: none; '> <input type='submit'name='222' value='Получить бонус'id='111' onclick='onClick();'> 

Question: How to make so that 1 button immediately after clicking enrolls a score and starts a timer?

  • Both buttons launch one function, what do you want? - user207618
  • Are you in the bath chtol? It is also necessary armpit sfotkat and put on avu. - user220409
  • It is necessary that 1 button credited the score, and the second after the expiration of the timer, so it credits the score. - Ilmir Murtazin
  • Give an example of what is (how that charges, we do not know) and what you want in the end. - user207618
  • @Other To knob1 first credited the score then launched the timer. Button2 appears after the time expires (it works) - Ilmir Murtazin

1 answer 1

figured it out himself. combined buttons.