| spockrates278 |
01-17-2013 06:44 PM |
Mystery: Datepicker works in every browser but Chrome
Hi. I have a mysterious issue I hope some coding detective will help me resolve. It's probably something simple I've missed, or some workaround of which I'm unaware.
A jQuery datepicker I recently added to a page works in IE 9, FF 18, even Safari 5, but it will not work in Google Chrome. Here is a link to the demo:
http://www.tempuspayment.com/paymentmate/tests/apm/
Here is the code:
Code:
$(function() {
$( "#fromCheck" ).datepicker({
defaultDate: "-1w",
maxDate: "+0",
changeMonth: true,
numberOfMonths: 1,
showButtonPanel: false,
onClose: function( selectedDate ) {
$( "#toCheck" ).datepicker( "option", "minDate", selectedDate || "-1w" );
}
});
$( "#toCheck" ).datepicker({
defaultDate: "+0",
maxDate: "+0",
changeMonth: true,
numberOfMonths: 1,
showButtonPanel: false,
onClose: function( selectedDate ) {
$( "#fromCheck" ).datepicker( "option", "maxDate", selectedDate || "+0" );
}
});
$( "#fromCard" ).datepicker({
defaultDate: "-1w",
maxDate: "+0",
changeMonth: true,
numberOfMonths: 1,
showButtonPanel: false,
onClose: function( selectedDate ) {
$( "#toCard" ).datepicker( "option", "minDate", selectedDate || "-1w" );
}
});
$( "#toCard" ).datepicker({
defaultDate: "+0",
maxDate: "+0",
changeMonth: true,
numberOfMonths: 1,
showButtonPanel: false,
onClose: function( selectedDate ) {
$( "#fromCard" ).datepicker( "option", "maxDate", selectedDate || "+0" );
}
});
});
It's a mystery to this Watson. Maybe it's elementary to you?
:D
|