title: How to include the jquery library code in codeigniter?
body: <p>My Dropdown menu,</p>
  
  <pre><code>   &lt;select  id="type" name="name" onchange="getval(this);"&gt;
      &lt;option value="1"&gt;One&lt;/option&gt;
      &lt;option value="2"&gt;Two&lt;/option&gt;
      &lt;option value="3"&gt;Two&lt;/option&gt;
      &lt;/select&gt;
      &lt;select id="size"&gt;
      &lt;option value=""&gt;-- select one -- &lt;/option&gt;
      &lt;/select&gt;
  </code></pre>
  
  <p>My javascript code,</p>
  
  <pre><code>&lt;script type="text/javascript"  src="/code/asset/js/jquery-1.10.2.js" charset="utf-8"&gt;
  &lt;/script&gt;//i want to include js file
  
   &lt;script type="text/javascript"&gt;
  function getval(sel) {
      var val = sel.value;
      if (val == 1) {
          $("#size").html("&lt;option value='1'&gt;item1: test 1&lt;/option&gt;&lt;option value='test2'&gt;item1: test 2&lt;/option&gt;");
      } else if (val == 2) {
          $("#size").html("&lt;option value='2'&gt;item2: test 1&lt;/option&gt;&lt;option value='test2'&gt;item2: test 2&lt;/option&gt;");
  
      } else if (val == 3) {
          $("#size").html("&lt;option value='3'&gt;item3: test 1&lt;/option&gt;&lt;option value='test2'&gt;item3: test 2&lt;/option&gt;");
  
      }
  
  }
  </code></pre>
  
  <p></p>
  
  <p>Path for jquery file</p>
  
  <pre><code>  C:\xampp\htdocs\code\asset\js\jquery-1.10.2.js
  </code></pre>
  
  <p>Is there any mistake in including jquery?</p>