Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS toggle

document.querySelector('.show-more').addEventListener('click', function () {
  document.querySelector('.additional-information')
    .classList.toggle('is-visible');
});
Source by careerfoundry.com #
 
PREVIOUS NEXT
Tagged: #JS #toggle
ADD COMMENT
Topic
Name
2+4 =