You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using datepicker on my site with the following code:
$(function(){
$("#attrib-23-0").attr( 'readOnly' , 'true' );
$('#attrib-23-0').datepicker({
dateFormat: 'MM dd, yy',
beforeShowDay: function(date){
var string = jQuery.datepicker.formatDate('mm/dd/yy', date);
var day = date.getDay();
return [ ( day > 0 && day < 6 && dates.indexOf(string) == -1), "" ];
}
});
var dates = ["07/14/2023","2023-07-04", "04-07-2023", "07/05/2023", "07/04/2023","07/06/2023","07/03/2023","07/07/2023"];
var d = new Date();
var targetTimeOffset = +6*60; //desired time zone, taken as GMT-4
d.setMinutes(d.getMinutes() + d.getTimezoneOffset() + targetTimeOffset );
$( "#attrib-23-0" ).datepicker( "option", "minDate", d );
});
When the page is first accessed, the calendar is displayed at the bottom of the page. Once the input field is clicked, the calendar is displayed correctly and the one at the bottom of the page disappeared.
Is this a known bug ? or is there a way to fix it?
I am currently using datepicker on my site with the following code:
When the page is first accessed, the calendar is displayed at the bottom of the page. Once the input field is clicked, the calendar is displayed correctly and the one at the bottom of the page disappeared.
Is this a known bug ? or is there a way to fix it?
An sample page can be seen here: https://www.royal-fleur.com/all-flowers/above-larkspur-sunset-bouquet
Thank you in advance for the help.
The text was updated successfully, but these errors were encountered: