Submitted almost 3 years agoA solution to the Pricing component with toggle challenge
toggle components implemented with checkbox and JS
P
@haydnkerr

Solution retrospective
In this challenge I went for a checkbox method to toggle between the two pricing options in addition to a little bit of JS. Happy with how this ended up. Just wondering if there's any way this could be done without javascript? I'm assuming it used display:none when checked or unchecked.
Any advice or opinions would be greatly appreciated
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Haydn Kerr's solution.
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