title: Onchange select without refresh
body: <p>When change value my page is refresh because i have to send value to query data
  but my selector doesn't show value when selected</p>
  
  <pre><code>&lt;form name='active' action='' method='GET'&gt;
  &lt;select class="form-control" id="section" name="section" onchange="list()" &gt;
  &lt;option value="0"&gt; - - Select All - - &lt;/option&gt;
    &lt;?php
         $section = $db-&gt;fetch();
         foreach ($section as $key =&gt; $v) {
          $section_name = $v['section'];
          echo "&lt;option value='".$section_name."'&gt;",$section_name,"&lt;/option&gt;";
         }
  ?&gt;                       
  </code></pre>
  
  <p>
     </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    function list(){ 
        document.active.submit(); 
    }
  &lt;/script&gt;
  </code></pre>