+ 9

Hi,l want the result to be in field below the button"Result" but it is displayed above. What I have to write? Thank You.

. https://code.sololearn.com/Wc72L61F4tFQ/?ref=app

19th Oct 2020, 9:05 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
2 Antworten
+ 8
11th Dec 2020, 9:39 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
+ 3
Hi, first of all change te id value, because AB has been already used on a <p> tag. Second use .value instead .innerHTML <input type="text" name="AB" id="AB2" readonly="readonly"/> document.getElementById("AB2").value = "AB="+AB
19th Oct 2020, 9:33 AM
Mariano Fregosi
Mariano Fregosi - avatar