Replacing SharePoint DatePicker

If you have ever used SharePoint, you probably know that SharePoint’s native datepicker’s is horrible.

Clicking the native datepicker will cause the entire page to post back, if the page is scrollable, this will take the user to the top of the page.

A simple solution is to remove the datepicker image link, and replace those fields with a datepicker of your choice. (I have chosen Air Datepicker, ( I dont like Jquery UI datepicker.

My solution:

//Hide DatePicker Image Link

//instantiate air datepicker
$(".ms-dtinput").find("input").datepicker({ language: "en", format: "DD-MM-YYYY",
autoClose: true })

2 simple lines to give your users a much nicer experience.

Related Posts

SharePointPro supports the push to make the Gold Coast the next Silicon Valley
What’s new with SharePoint 2016
Software Is Expensive
SharePointPro Entity Framework
Multiple domain cookie in ASP.NET Core Identity

Leave a Comment