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

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

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