Hiding a button in Javascript

前端 未结 9 1340
终归单人心
终归单人心 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 05:47

    Something like this should remove it

    document.getElementById('x').style.visibility='hidden';
    

    If you are going to do alot of this dom manipulation might be worth looking at jquery

提交回复
热议问题