Following is the form with id msform that I want to apply style=\"display:none\" attribute to.
msform
$(document).ready(function(){ var display = $("#msform").css("display"); if(display!="none") { $("#msform").attr("style", "display:none"); } });