@satish064
Posted
if you use this is your toggle minus and plus will be work use this { if (event.target.classList.contains('icon-plus')) { const $response = event.target.nextElementSibling; $response.classList.toggle('show-response'); // debugger if($response.classList.contains('show-response')) { $response.previousElementSibling.setAttribute('src', './assets/images/icon-minus.svg'); } else { $response.previousElementSibling.setAttribute('src', './assets/images/icon-plus.svg'); } } });