tic tac toe javascript reset button not working -


hi trying create reset function - have created loop on click take values in "input" class , return empty string.

what doing wrong?

function reset (){     (i=0 ; 1 < cell.length ; ++){         document.getelementsbyclassname("input").addeventlistener("click").value =""     } 

getelementsbyclassname   

returns array. need specify index. ie. classarray[i]. also, forgot semi colon @ end of line.


Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -