title: how to add date picker to form_input
body: <p>im trying to add jquery datepicker to the input field, but im not accomplishing this. here is my code</p>
  
  <pre><code>       &lt;div class="field_row clearfix"&gt;
          &lt;?php   
          echo form_label($this-&gt;config-&gt;item('custom'.$i.'_name').':', 'custom'.$i,array('class'=&gt;'wide')); ?&gt;
          &lt;div class='form_field' onclick="test()" id='datepickers'&gt;
              &lt;?php echo form_input(array(
                  'name'=&gt;'custom'.$i,
                  'id'=&gt;'custom'.$i,
                  'value'=&gt;$item_arr['custom'.$i])
              );?&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  
       function test() {
      $( "#datepicker" ).datepicker();
       }
  </code></pre>
  
  <p>this is what i tried with onlcik, but i really like to go it exactly as this example.</p>
  
  <pre><code>&lt;p&gt;Date: &lt;input type="text" id="datepicker"&gt;&lt;/p&gt;
  
   $(function() {
   $( "#datepicker" ).datepicker();
   }
  </code></pre>