Jquery Datepicker Th Year Issue
I already set below things for datepicker. I already added TH JS As well. https://github.com/jquery/jquery-ui/blob/master/ui/i18n/datepicker-th.js It's showing TH Month Name &
Solution 1:
I already tried and it works https://codepen.io/titan_dl_1904/pen/rdJmyL
<htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1"><title>jQuery UI Datepicker - Default functionality</title><linkhref="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"><linkhref="/resources/demos/style.css"><scriptsrc="https://code.jquery.com/jquery-1.12.4.js"></script><scriptsrc="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script><scriptsrc="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/i18n/datepicker-th.js"></script></head><body><p>Date: <inputtype="text"id="date-of-birth"></p>
Did I miss something?
EDIT
set year range yearRange: '+443:+543'
set current year to the end range year
var currentDate = newDate();
currentDate.setYear(currentDate.getFullYear() + 543);
$('#date-of-birth').datepicker("setDate",currentDate );
Post a Comment for "Jquery Datepicker Th Year Issue"