Hi Max,
Code: Select all
I wrote the following code, trying to set date and time formats and get the now date (the code is within page load event):
addScroller('datetime', Tiggzi('Datetime1Lbl'));
$('#Datetime1Lbl').mobiscroll().datetime({
minDate: new Date(now.getFullYear(), now.getMonth(), now.getDate()),
display: 'modal',
animate: 'pop',
mode: 'mixed',
Code: Select all
dateFormat: 'yy-mm-dd',
timeFormat: 'HH:ii:ss',
timeWheels: 'HHii'
});
Datetime1Lbl is a label.
It's not working.It's because the $('#Datetime1Lbl') reference to the mobiscroll object is wrong (it's a label) . Do you know what reference should I use to get the right mobscroll object? It seems confusing to me, because the method addscroller creates a mobiscroll object but do not create any reference to it. So, I can't handle and set the right parameters. Is there any other way of creating the mobiscroller (not using "addScroller('datetime', Tiggzi('Datetime1Lbl'));")?