qevery selectorenot working
Opened this issue · 0 comments
dhruvdesa commented
document.getElementById('clone-button').addEventListener('click', function() {
const originalCounter = document.querySelector('.counter');
const clonedCounter = originalCounter.cloneNode(true);
clone.querySelector('.counter').textContent = '0'; // Reset cloned counter value to 0
document.getElementById('counter-container').appendChild(clonedCounter);
});
this code in clone,queryselectoer not working