24th Dec 2019, 2:11 AM
Christopher Bell
Christopher Bell - avatar
3 Respostas
+ 2
1) In the JavaScript: line 2, you needed an = sign. 2) when you did the + ‘convert(this.value)’ the single quotes were removed. Working Code: https://code.sololearn.com/W2vwUt5ASM6z/?ref=app
24th Dec 2019, 2:25 AM
Jax
Jax - avatar
+ 1
Hi, You have to use an assignment operator in your js code line number 2. Another solution is you can directly call a function on button click and you can put a code of alert in that function. Following is the example code of 2nd solution. https://code.sololearn.com/W4djZQtKxGat/#html
24th Dec 2019, 4:01 AM
Ishan Shah
Ishan Shah - avatar
0
Thanks for all the advice and the lesson you all gave me
24th Dec 2019, 4:41 AM
Christopher Bell
Christopher Bell - avatar