Hiding a button in Javascript

前端 未结 9 1333
终归单人心
终归单人心 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:53

    If you are not using jQuery I would suggest using it. If you do, you would want to do something like:

    $( 'button' ).on(
       'click'
       function (  )
       {
           $( this ).hide(  );
       }
    );
    

提交回复
热议问题