I've created a function that changes the parent element's background gradient when a checkbox's status is toggled. Check out the Lorem link to see it in action!
However, I've encountered an issue with applying this functionality to a larger box in my example because there's a background image specified for that particular element. It seems that a gradient cannot coexist with a background image in the same space.
Is there a way around this limitation to add a background gradient to the element? Keep in mind that I can't apply the gradient directly to the image since they will be dynamically populated and not all images will have the same dimensions.
I'm open to any suggestions on how to achieve this, whether it involves changing HTML/CSS or utilizing jQuery - all solutions are welcome! :)