Following is the form with id msform that I want to apply style=\"display:none\" attribute to.
msform
You can just use: $("#msform").hide(). This sets the element to display: none
$("#msform").hide()
display: none
Except hide() mentioned in other answers, you can use css():
hide()
css()
$("#msform").css("display","none")