Amobi Jonathan Chukwudi• 350
@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