How to set “style=display:none;” using jQuery's attr method?

后端 未结 8 1651
闹比i
闹比i 2020-12-24 12:04

Following is the form with id msform that I want to apply style=\"display:none\" attribute to.

8条回答
  •  误落风尘
    2020-12-24 13:06

    Except hide() mentioned in other answers, you can use css():

    $("#msform").css("display","none")
    

提交回复
热议问题