iraptis
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by iraptis
-
-
Hello,
My datepicker code is the following:
jQuery( “#start-date” ).datepicker({ dateFormat: ‘dd-mm-yy’, defaultDate: new Date(), beforeShowDay: function(date){ var startDate = jQuery.datepicker.formatDate(‘yy-mm-dd’, new Date()); var currentDate = jQuery.datepicker.formatDate(‘yy-mm-dd’, date); return [ currentDate >= startDate] } });
This works with IOS but not with android.
If i add the following code to fix positioning:
beforeShow: function (input, inst) { var rect = input.getBoundingClientRect(); setTimeout(function () { inst.dpDiv.css({ top: rect.top -40, left: rect.left + 0 }); }, 0); }
Then it works with Android but not with IOS.This code exists in a wordpress site and the problem happened when i upgraded from 5.5 to 5.7
Any ideas how to fix this problem?
jquery datepicket not working on mobile
in JavaScript
Posted
Hello dsonesuk,
thanks for reply
I added this but nothing changed
the url is this
https://demo.progresscarrental.gr/car/greece-rental-car-kia/
if u click ¨book now¨ there is a popup that contains the "Pick up time" - "Drop off time" calendars