I've a check-box inside div.
<div id="question_text_1">
<input type="checkbox" onChange="myFunction(question_text_1)">Sample question text
</div>
I'm trying to toggle the background color of div
whenever checkbox is checked or unchecked, which is not working.
Here is the complete code
However, implementing same code without toggle logic is working fine - link
Kindly suggest what could be going wrong.