using twitter datepicker.css and bootstrap-datepicker.js -


i trying create datepicker using twitter datepicker.css , bootstrap-datepicker.js it's not working. i'm using codeigniter in project.

<input type="text" name="end_date" value="" class="datepicker" data-format="dd-mm-yyyy" />    <script>     $(function() {         $( ".datepicker" ).datepicker();     }); </script> 

i've included both files mentioned above not working. how can make work?

i have error(firebug) --> "typeerror: $(...).datepicker not function"

you can can use : http://www.eyecon.ro/bootstrap-datepicker/

$(function() {   $(".datepicker").datepicker({format:'dd/mm/yyyy'}); }); 

here's working example : http://refork.com/x771


Comments