0

How to make toggle switch html?

I want to make a toggle switch, using that switch I want to change the values of input tag so that whenever I click on that switch it turns on and set value to ON and again for OFF values

17th Apr 2021, 10:26 AM
Vivek Singh
Vivek Singh - avatar
2 Respostas
+ 2
Vivek Singh Attempt it first. If you have trouble after trying to code it, then post a question here with your code attempt. Hint: you'll need to use an event handler (or event listener) to utilise the toggle logic.
17th Apr 2021, 10:31 AM
CamelBeatsSnake
CamelBeatsSnake - avatar
+ 2
You can take some reference for understanding from here //Use the search bar in the code snippet as well for finding any code https://code.sololearn.com/WDV7H2nAkAHb/?ref=app
17th Apr 2021, 12:01 PM
Aditya
Aditya - avatar