Hi,
i want to add a additional text to an input on click.
So i made following code:
document.getElementById("button").addEventListener('click', function () {
var text = document.getElementById('input');
text.value += ' Hello';
});
But, when i do it in WeWeb,
First time click = nothing happens
Second time = adds me the text twice
Third time = three times
But when i do it with simple HTML and JS it works.
Is it a bug or i missed something?