A
A
Antonio092020-05-09 16:12:31
JavaScript
Antonio09, 2020-05-09 16:12:31

Why is self here (what can be replaced)?

instead of writing self.innerHTML = this.value;

this.innerHTML = this.value;
and will not work

20-23 lines
https://jsfiddle.net/s8245hx3/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dubolom Unicellular, 2020-05-09
@Antonio09

self is needed in order to get the this of the element above

S
shsv382, 2020-05-09
@shsv382

You have such a tin there ... why even add handlers inside adding handlers inside adding other handlers, and still refer to this ??? Try to declare all handlers in different functions and assign them by reference

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question