Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap Datepicker not working.

Fiddle ex: http://jsfiddle.net/EmwFE/

So I have been trying to get datepicker working and I think I am following the directions but I can't get the calendar to pop up.

TIA

Fiddle example above code below.

                 <label class="control-label" for="input08"> 
                    My Start Date
                 </label>
                 <div class="controls">
                    <script type="text/javascript">
                        $(document).ready(function() {
                        $('.datepicker').datepicker();
                    </script>

                    <div class="input-append date" id="dp3" data-date="12-02-2012" data-date-format="dd-mm-yyyy">
                        <input class="span2" size="16" type="text" value="12-02-2012" class="datepicker">
                        <span class="add-on"><i class="icon-th"></i></span>
                    </div>

                </div>
like image 893
weggie Avatar asked Mar 29 '13 23:03

weggie


1 Answers

Look this: jsfiddle

You bet initialization the ID of the div that contains everything. you were aiming at nothing!

$('#dp3').datepicker();
like image 154
Lughino Avatar answered Sep 20 '22 00:09

Lughino