
Design comparison
Solution retrospective
Can anyone let me know if we click dismiss message how it can go back to the main screen. how do I handle that in javascript?
Community feedback
- @Lukas3162000Posted 2 months ago
Nice solution!
On behalf of your question:
To make your dismiss-button work as it's supposed to, you'd need to play with the display-property of your two cards. On example you could safe the display properties of your normal card and your succes-card in a variable on your JS file and change their values on click of the dismiss-button.
Hope that helps :)
Marked as helpful0 - @DarionasPosted 2 months ago
Hei, Nice work. You can look to example and solve you stack: https://github.com/Darionas/newsletter-sign-up-form-with-success-message
Happy coding!
0
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