Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Date Input - Show Calendar on click event

Hi

Currently you have to click the down arrow on the date input component to show the calendar.

Is it possible to click anywhere in the input to show the calendar?

Thank you

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Date Input - Show Calendar on click event

Hello Deon,

Please use JS code below for that (run it on the page show event):
pre$("[name=myDatepicker] input").off("click").on("click", function(){
if (!$(".hasDatepicker").length){
$("[name=myDatepicker] a").trigger("click");
}
});/pre
here myDatepicker - name of the datepicker, which you use

Return to “Issues”