eureka2 / ab-datepicker

An accessible and bootstrap compatible datepicker
MIT License
63 stars 55 forks source link

data[option] is not a function #30

Closed leeh14 closed 6 years ago

leeh14 commented 6 years ago

I was wondering what I did incorrectly to receive this error on all the function calls on the datepicker. Like the disable and enable the datepicker. In the view I have this textboxfor @Html.TextBoxFor(m => m.DateTest, new { @class = "form-control datepicker", placeholder = "MM/dd/yyyy" }) In the document ready function i have this $(document).ready(function (e) { //initialize date pickers $('.datepicker').datepicker(); }); yet when I write the line of code $('#DateTest').datepicker('disable') I get the error message uncaught type error: data[option] is not a function at jQuery.fn.init.$.fn.datepicker (datepicker.js:2940) at :1:20

Based off of the demo it should be working to my knowledge. I'm not sure what I did incorrectly I do have the latest version 2.1.10 in the project

leeh14 commented 6 years ago

I realized the cache wasn't getting clear my apologies