Design comparison
Solution retrospective
I tried to make all the operation of replacing code in one html file with template, but I couldn't change the inside of template after replacing it to set selected value. I still don't know how to do it, and if it's even possible. Any feedback is appreciated.
FinalIy I decided to make it with 2 html files. What i found difficult was to display value of selected rate in next html file. Please let me know if the code is appropriate, if it's not outdated and what would you improve, especially in JS. Is there a better practice regarding transfering selected value? Should I do this in one html file, and with just replacing components in future? Thank You!
###EDIT####
I made a remake of this project.
Now I use more mechanisms of toggle classes with JS instead of another html file. It's simpler and easier!
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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