title: Reference div id in my MVC model
body: <p>I have a small hunk of code in my model that references a form.
  Basically if the Name is null say "Name is required" I want to add, AND the div id == divid but I am new do MVC and I can't seem to figure out how to reference the DIV id in my code </p>
  
  <pre><code>if (String.IsNullOrWhiteSpace(InsuredName))
          {
              retval.Add("Insured Name is required.");
          }
  </code></pre>
  
  <p>so after (InsuredName)) I want it to add &amp;&amp; id == divid</p>
  
  <p>Here is a snippet of my View</p>
  
  <pre><code>&lt;div id="OSC" class="filter-div" style="display:none;"&gt;
          &lt;div class="row-fluid show-grid"&gt;
              &lt;div class="span4"&gt;
                  &lt;p class="text-info-left"&gt;Insured Name *&lt;/p&gt;
                  &lt;p class="text-info-left"&gt;@Html.TextBoxFor(model =&gt; model.InsuredName, new { id = "InsuredName", name = "InsuredName", tabindex = "1", type = "text", value = "" })&lt;/p&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>So while div id is equal to OSC AND the string is null or whitespace</p>