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
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:1:20
@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) atBased 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