Tuesday, May 22, 2018

Change background color of div when checkbox is clicked

1 comment
how to Change background color of div
how to Change background color of div,

Hello everyone, in this tutorial will learn how to create HTML checkbox to change the background color of div tag. its allows to change the background color of the div, and when it's unchecked, remove the background color. in this tutorial i have used Jquery add and remove class function to to changing the CSS of the parent div directly.

Step 1 - Jquery load 


Step 2 - HTML checkbox


hope this tutorial help you to include in your projects. if you have any doubts feel free contact me via Webriderat@gmail.com. happy coding😄
please share this in your social media if you like. thanks

https://docs.google.com/uc?export=download&id=1l_qNIC19fTZWGiIuGXbKyh8UB3yeRHl-
If You Enjoyed This, Take 5 Seconds To Share It

1 comment:

  1. ரொம்ப பயனான பதிவு வாழ்த்துக்கள்

    ReplyDelete