سؤال

I cannot find an "onMonthChanged" event on the jqm Datebox. Is there any event that fires when the user presses the arrow button to change month in the control?

Any alternative solution to catch this user action?

Thanks!

هل كانت مفيدة؟

المحلول

Looks like {'method'} === offset does this. Just a question of me not understanding the API docs.

$('#mydate').bind('datebox', function (e, p) {
    if (p.method === 'offset') {
        alert(p.amount);
    }
});
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top