0

Clearing an input

So I have this code. I want to know if there's a way to clear the output text using a button. https://code.sololearn.com/Wa38bFrnaDrA/?ref=app

11th May 2018, 9:11 PM
Daniel Cooper
Daniel Cooper - avatar
4 Answers
+ 1
just change its value or innerHtml as you did to empty string and youre done)
12th May 2018, 9:37 PM
Rose Sevenyears
Rose  Sevenyears - avatar
0
Sorry.was messing with stuff. Wrong code. one sec
11th May 2018, 9:12 PM
Daniel Cooper
Daniel Cooper - avatar
11th May 2018, 9:13 PM
Daniel Cooper
Daniel Cooper - avatar