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