Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 8 months ago

Mortgage Calculator using HTML, CSS & JS

accessibility
Dugidem•230
@DeeNue36
A solution to the Mortgage repayment calculator challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

It's been a while since I worked with forms hence why I took up this challenge. It was certainly refreshing. Decided to even have some fun with it and added an animation and extra error messages for the error states. The animation has a timeout and reapplies every time the user tries to submit an empty or invalid form values.

What challenges did you encounter, and how did you overcome them?

How to allow decimals in the number input field, using patterns, moving to the next input field using tabindex etc. Stack overflow made all this simpler for me.

What specific areas of your project would you like help with?

Using commas on the amount input field and also when displaying the results. I'm still looking to this but any help would be appreciated.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Dugidem'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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub