3

I am using bootstrap datepicker from http://www.eyecon.ro/bootstrap-datepicker/

But the firebug shows date is undefined in the bootstrap-datepicker.js file in the following line.

var parts = date.split(format.separator)

javascript file and css are working properly

<script type="text/javascript" src="../bootstrap/js/bootstrap-datepicker.js"></script>

<link rel="stylesheet" href="../bootstrap/css/datepicker.css" type="text/css"/>

And Initialized the date picker using

$('.datepicker').datepicker({ format: "yyyy-mm-dd" });
5
  • I believe that lack the value of its field Commented Feb 10, 2014 at 11:02
  • Can we see your <input class="datepicker"></input> ? Commented Feb 10, 2014 at 11:02
  • can u explain more.. i couldn't understand Commented Feb 10, 2014 at 11:03
  • <input type='text' id='dates' class='datepicker' data-date-format=\"yyyy-mm-dd\" readonly> Commented Feb 10, 2014 at 11:03
  • in the calender there is no value element . Commented Feb 10, 2014 at 11:13

1 Answer 1

2

The Problem Was Due to older bootstrap-datepicker.js . After Replacing bootstrap-datepicker.js with new its working properlly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.