Design comparison
SolutionDesign
Solution retrospective
I need help understanding how to get the value from "custom" .
Community feedback
- @SatellitePeacePosted about 2 years ago
Hello @gabilucuta nice job
here is a tip on how to get the value from the custom input
Since the custom is a form input what you want to get is the value of your input
so you need to add an input event listener to it so that whatever you input you can get the value
example
customTipPercent.addEventListener("input", () => { console.log( customTipPercent.value)// to see the value of the custom input // the rest of your code goes here } ```` I hope this helps
Marked as helpful0
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