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
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
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
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