Design comparison
SolutionDesign
Solution retrospective
For some reason my Javascript code wipes out the default text in the entry area. Hoping someone can help explain as to how I can solve this issue. Thanks.
Community feedback
- @WasaanyiPosted over 1 year ago
Well done Bryan. Try using the placeholder attribute for input in the place of value to set the default text. e.g
for <input type="text" value="DD" maxlength="2" class="">
try <input type="text" placeholder="DD" maxlength="2" class="">
Marked as helpful1
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