title: date picker in codeigniter
body: <p>I want to use Datepicker in form Codeigniter but I have a problem. Here's my code:</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;!--- date picker---&gt;
      &lt;label for="dtp_input2" class="col-sm-2 col-sm-2 control-label"&gt;Tanggal Berita&lt;/label&gt;
      &lt;div class=”input-append date” id=”datepicker” data-date=”” data-date-format=”dd-mm-yyyy” &gt;
          &lt;input class=”span2″ size=”16″ type=”text” value=”” disabled&gt;
          &lt;span class=”add-on”&gt;&lt;i class=”icon-th”&gt;&lt;/i&gt;&lt;/span&gt;
      &lt;/div&gt;
  
      &lt;script&gt;
          $(‘#datepicker’).datepicker();
      &lt;/script&gt;
      &lt;input type="hidden" id="datepicker" value=""/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Scripts:</strong></p>
  
  <pre><code>&lt;script src="&lt;?php echo base_url(); ?&gt;assets/js/chart-master/Chart.js"&gt;&lt;/script&gt;
  &lt;script rel="stylesheet" type="text/css" href="&lt;?php echo base_url(); ?&gt;assets/js/bootstrap-datetimepicker.id.js"&gt;&lt;/script&gt;
  &lt;script rel="stylesheet" type="text/css" href="&lt;?php echo base_url(); ?&gt;assets/js/bootstrap-datetimepicker.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url(); ?&gt;assets/css/bootstrap-datetimepicker.css"&gt;
  &lt;!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
  &lt;!--[if lt IE 9]&gt;
    &lt;script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"&gt;&lt;/script&gt;
    &lt;script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  &lt;script type="text/javascript"&gt;
      $('.datepicker').datetimepicker({
          language:  'id',
          weekStart: 1,
          todayBtn:  1,
          autoclose: 1,
          todayHighlight: 1,
          startView: 2,
          minView: 2,
          forceParse: 0
      });
  &lt;/script&gt;
  </code></pre>