Page 1 of 1

Date Input - Show Calendar on click event

Posted: Fri Jul 08, 2016 8:12 am
by Deon

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


Date Input - Show Calendar on click event

Posted: Fri Jul 08, 2016 4:32 pm
by Serhii Kulibaba

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