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-main

#jss#sass/scss
Welangai Eric• 160

@WelangaiEric

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


there is a lot to be fixed. but i can say i tried

Community feedback

@Errorman2003

Posted

Hello Eric, your solution looks great except for the fact that it isn't interactive.

In case you're wondering what Event listener could be used you can use the keyup event listener

here's a sample solution code

// dom elements
const inputs= document.querySelectorAll('input');
const outputs = document.querySelectorAll('output');

inputs.forEach(function(input, index){
input.addEventListener("keyup", function('keyup', function(){
if(validation code === true) {
outputs[index].textcontent = input.value; 
}
})
)
});

Marked as helpful

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