Price toggle using CSS, HTML and JS

Solution retrospective
I will make some changes soon : P
Please log in to post a comment
Log in with GitHubCommunity feedback
- @hmadamk
nicely done a couple of notes though your checkbox does not have a label wich mean that blind people with screen readers aren't going to be able to interacte with it so you might consider one of these solutions
- surrond your checkbox by a label and give it a hidden span
- the most prefered one is to add a title to your checkbox and you don't need a div.footer you can use the footer tag
Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord