@harishfuego33Submitted 11 months ago
i have minor problem in changing button to minus and problem in responsive media query .so kindly sport the error and give me right way to approach it
i have minor problem in changing button to minus and problem in responsive media query .so kindly sport the error and give me right way to approach it
Hi Harish, You have done an awesome job of matching to the design.I have recently completed the same challange and for your issue with changing the button image you can add an id to the image <img src="./assets/images/icon-plus.svg" alt="" class="Icon"> and access the image in JS
//find icon image with id
let test = YourImage.src.includes('icon-plus.svg') // test if your path includes
//setup onClick event
YourImage.src = test ? ('yourpath/icon-minus.svg) : ('yourpath/icon-plus.svg)
I hope this helps