Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- moreBtnElement1.addEventListener('click', (e) => {
- if (e.currentTarget.textContent === 'MORE') {
- console.log('first');
- e.currentTarget.textContent = 'LESS';
- divExtra2.style.display = 'inline-block';
- } else {
- e.currentTarget.textContent = 'MORE';
- divExtra2.style.display = 'none';
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement