Saturday, September 16, 2023
HomeCSSjavascript - Overlay a clear switch over each radio choice

javascript – Overlay a clear switch over each radio choice


I require to overlay a clear switch over each radio choice. It needs to be a radio.

I have actually been attempting to obtain it included but also for some factor the switch rejects to be put on all choices, just the initial radio. Despite the fact that I have actually used switch to all 3 choices.

Additional incentive if somebody can aid with the JS that will certainly be required for aspect overlays. Because including a switch on the leading layer will certainly make the hover aspect of radios vanish and also get rid of the capability to click the radio.

TLDR: I require switches put on all radios and also js to maintain habits the very same. Basically switch is simply being usage to sign up a choice … And also yes, it needs to be a switch aspect.

Below is code:
https://play.tailwindcss.com/iqNzSNnLdy

RELATED ARTICLES

Most Popular

Recent Comments