I'm using twitter bootstrap and alert elements to use within my web page and I want to use this as validation summary towards the top section of my page.
The issue that I have is when I use "alert alert-danger" on my create.chstml page, this displayed the red warning bar by default when the page is loaded.
The actual validation works on the form fields they are supposed to, however, I just need to find a way of hiding this warning bar when the page loads and then get this to kick in when my create button has been clicked.
I have tried some of the bootstrap properties like Hidden:hidden but this doesn't seem to work. Can I use javascript to complete this task and link this to the button create I have?
Here is the bootstrap I have on my create.cshtml
<div class="form-horizontal">
<div class="row" >
<div class="alert">
@Html.ValidationSummary(false, " ", new { @class = "text-danger alert alert-danger" })
</div>
</div>
</div>