Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Interactive card details form

gracepal 430

@gracepal

Desktop design screenshot for the Interactive card details form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

Hello! The gradient background and the real-time updating is a mystery. I will revisit these features in the next iteration.

Community feedback

@NeilNeel

Posted

I noticed your solution and wanted to offer a suggestion for real-time updates on the card. You can achieve this by using the addEventListener method with the input event. This way, whenever the user types anything, it will be directly visible on the card without the need for additional interactions.

Here's an example of how you can implement it:

// Assuming 'inputElement' is your input field and 'cardElement' is your card element
inputElement.addEventListener('input', function(event) {
  // Update the text content of the card element with the value from the input field
  cardElement.textContent = event.target.value;
});

Marked as helpful

1

gracepal 430

@gracepal

Posted

Thanks @NeilNeel for the feedback and the code snippet! I will include it in the next PR.

0

Please log in to post a comment

Log in with GitHub
Discord logo

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