title: Can not onclick in hosting php codeigniter
body: <p>I tried to do onclick on the select options such as the following script, when I run dilocalhost he is working but after my hosting to server he did not want work, what's wrong?</p>
  
  <pre><code>&lt;select class="form-control" id="category" onchange="this.form.submit()"&gt;                       
      &lt;?php foreach($mydata as $row) { ?&gt;
       &lt;option onclick='location.href="&lt;?php echo base_url() ;?&gt;category-all/&lt;?php echo $row-&gt;id_data;?&gt;"'&gt;&lt;?php echo $row-&gt;name_data;?&gt;&lt;/option&gt;
      &lt;?php } ?&gt;  
  &lt;/select&gt;
  </code></pre>