Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 930dfb4746
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (31 sloc) 1.01 KB

Dr.Cal - a minimalistic javascript calendar (not a date picker) - version 1.1


Dr.Cal generates a calendar in a <table>. It leaves most of the rest of the work to you.

How to Use

var cal = $.cal(); // returns a <table>


year() : return the current year (as a 4-digit integer) month() : return the current month (as an integer in the range [1,12]) findCell(date) : return the cell containing the given JavaScript date changeMonth(date) : change to the month containing the given JavaScript date


drcal.weekRender : triggered when a month is rendered for the first time; passed the newly rendered tr drcal.monthChange : triggered every time the month is changed


First day displayed : cal.find('[date]:first') Last day displayed : cal.find('[date]:last') First day of the displayed month : cal.find('[date]:not([class="extra"]):first') Last day of the displayed month : cal.find('[date]:not([class="extra"]):last')

Jump to Line
Something went wrong with that request. Please try again.