Uncaught TypeError: $(…).datepicker is not a function

InfoPath alternatives for form designing SharePoint

Recently while working with jQuery I got the below error which says

Uncaught TypeError: $(…).datepicker is not a function

Below is the code which I was using.

$(“#Checkindate”).datepicker({
beforeShow: function (el) {
// set the current value before showing the widget
$(this).data(‘previous’, $(el).val());
},

Also you can read:
– Get dropdown selected value and selected text using jQuery inside script editor web part in SharePoint Online

– JSLink in SharePoint 2013 or JSLink in SharePoint Online

– Steps to retrieve alternative languages from language settings in SharePoint online using JavaScript object model?

Solution:
If there is another library that is using the $ variable, you can do this:

var $j = jQuery.noConflict();

$(“#Checkindate”).datepicker({
beforeShow: function (el) {
// set the current value before showing the widget
$(this).data(‘previous’, $(el).val());
},

Hope this will be helpful.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply