title: How do i hide div in asp.net mvc
body: <p>I have 3 div which are: </p>
  
  <p><code>&lt;div class="widgetbox" id="divone"&gt;Content 1&lt;/div&gt;</code></p>
  
  <p><code>&lt;div class="widgetbox" id="divtwo"&gt;Content 2&lt;/div&gt;</code></p>
  
  <p><code>&lt;div class="widgetbox" id="divthree"&gt;Content 3&lt;/div&gt;</code></p>
  
  <p>I need to hide two of these div so that I can make a condition to decide which to appear and which to hide later on. I tried to hide it like below, but it doesn't work. I think I'm using mvc 4. sorry for bad english.</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
      $("#divtwo").hide();
      $("#divthree").hide();    
  &lt;/script&gt;
  </code></pre>