title: How to hide div when if condition satisied in CodeIgniter?
body: <p>I'm trying to edit my form In CI. </p>
  
  <pre><code>    if($main_content-&gt;type=="daily activities"){ ?&gt;
      &lt;script&gt;$("#show_ACTIVITIES").show();&lt;/script&gt;
          &lt;?php }
          else{ ?&gt;
   &lt;script&gt;$("#show_ACTIVITIES").hide();&lt;/script&gt;
  
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>I want to show div <code>show_ACTIVITIES</code> if condition is satisfied if not hide div <code>show_ACTIVITIES</code></p>