Simple iOS-style calendar plugin for jQuery Mobile for both showing activities or picking dates.
$("#calendar").jqmCalendar({
events : [ { "summary" : "Test event", "begin" : new Date(), "end" : new Date() } ],
months : ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
days : ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
startOfWeek : 0
});
(PLease note that all properties of the settings objects are optional, and the values above, except for the events, are defaults!)
Listen to changes via the event:
$("#calendar").bind('change', function(event, date) {
console.log(date);
});
Change the current month by calling refresh:
$("#calendar").trigger('refresh', new Date("2013-01-01"))