add event listener to come back in the text field code example
Example 1: apply event listener on id but why not style
for(var i = 0; i < bttn.length; i++){
bttn[i].addEventListener("click",draw,true)
}
Example 2: event listener works without being clicked
document.getElementById("main_btn").addEventListener("click", function (){
hideId("main");
});
//dont call the function directly, use function that calls it