Hiding a button in Javascript

前端 未结 9 1316
终归单人心
终归单人心 2020-11-29 05:20

In my latest program, there is a button that displays some input popup boxes when clicked. After these boxes go away, how do I hide the button?

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 06:04

    //Your code to make the box goes here... call it box
    box.id="foo";
    //Your code to remove the box goes here
    document.getElementById("foo").style.display="none";
    

    of course if you are doing a lot of stuff like this, use jQuery

提交回复
热议问题