#Small program giving weird output

2 messages · Page 1 of 1 (latest)

white salmon
#

You're modifying both fields every time any field changes. It's gonna cause an infinite loop of changes... I think the browser prevents the infinite loop hence you're only seeing it double.

#

You need to add the change event listener to the elements not the document