I am using mobiscroll on a website as a method for date input. The scroller is initiated like this:
$(function(){
var curr = new Date().getFullYear();
$('#date').scroller({
preset: 'date',
height: 30,
width: 20,
theme: 'default',
display: 'inline',
mode: 'scroller',
dateOrder: 'MD ddyy',
startYear: curr,
endYear: curr + 3,
minDate: new Date(),
showLabel: false,
onChange:function(){ upDATE(); }
});
$('#date').scroller('setValue', [11,9,'2012']);
As you can see, it is initiated with a minimum date (today). My problem occurs when the user attempts to scroll from December of 2012 to January. You would expect the year to scroll ahead to January of 2013, but it doesn't. Instead, it goes back to the first valid date in the current year. This is not very intuitive.
Does anyone know how to make the scroller behave as expected?