Eray• 1,410
@ErayBarslan
Posted
Hey, great work on the challenge! You can use input
eventListener to achieve that. For custom input it would be:
document.getElementById("custom__button").addEventListener('input', (e) => {
calculateTipAmount(e, e.target.value / 100)
})
You can apply the same to other inputs. Happy coding :)
0