javascript - Clearing textbox makes it inaccessible -


see atttached fiddle. have trial in pressing buttons place them textbox. want users able "start over" , hit "clear" button erase answer. clear button works, afterwards, pressing other buttons not put them textbox before.

current code "clear" button:

function clear(){ letters.value = ""; }; 

https://jsfiddle.net/xxpolyglotxx/ea6rnwlr/

replace

letters.clear = ""; 

with

letters.innerhtml = ""; 

here updated fiddle


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -