Following is the form with id msform that I want to apply style=\"display:none\" attribute to.
msform
You can use the hide and show functions of jquery. Examples
hide
show
In your case just set $('#msform').hide() or $('#msform').show()
$('#msform').hide()
$('#msform').show()