Answer the question
In order to leave comments, you need to log in
How to change button text on click?
How can I make the button change its name on each click? Thanks
Answer the question
In order to leave comments, you need to log in
btn.textContent = btn.classList.contains('show')
? 'Скрыть'
: 'Показать';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question