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

python - argument must be rect style object - Pygame -

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

php - Zend Framework / Skeleton-Application / Composer install issue -