Datepicker on codeigniter -


i have datepicker purely working in test_datepicker.html. here code:

    <!doctype html>     <html>      <head>        <title>date picker</title>        <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" >        <script src="http://code.jquery.com/jquery-1.10.2.js"></script>        <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>         <script type="text/javascript">         $(function() {          $( "#datepicker" ).datepicker();         });        </script>      </head>      <body> 

this working, when sync on ci php code not working.

http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" ?>' > http://code.jquery.com/jquery-1.10.2.js" ?>' >

http://code.jquery.com/ui/1.11.4/jquery-ui.js" ?>' >

<script type="text/javascript"> $(function() {    $( "#datepicker" ).datepicker(); }); </script> 

<table class="table">             <tr>                 <th class="author">employee</th>                 <th>branch</th>                 <th>designation</th>                 <th>date hired</th>             </tr>              <?php              $e = $this->db->distinct("lastname,firstname")->from("tb_employee")->get();             foreach($e->result() $emp ):              ?>                            <tr>                 <td><?php echo $emp->lastname . ' ' . $emp->firstname; ?></td>                  <td>                     <select name = "tbarnch">                     <?php $b = $this->db->select("*")->from("tb_branch")->get();                     foreach($b->result() $br ):                     ?>                         <option value =<?php echo $br->branch_id;?>>                           <?php echo $br->branch_name; ?>                          </option>                     <?php endforeach;?>                      </select>                 </td>                  <td>                     <select name = "tdesignation">                     <?php $d = $this->db->select("*")->from("tb_designation")->get();                     foreach($d->result() $des ):                     ?>                         <option>                           <?php echo $des->designation_name; ?>                          </option>                     <?php endforeach;?>                      </select>                 </td>                  <td>                 <select>                     <?php                      $date = '';                     $date = date("y");                          ($i=$date; $i > 1900;$i--) {                              echo "<option value = ".$i.">" .$i. "</option>";                         }                     ?>                 </select>                 </td>                 <td><input type="text" placeholder="pickup date" id="datepicker"  name="datepicker"></td>             </tr>             <?php endforeach;?>                            </table> 

i using table tag on this.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -