Minimalist Calendar Plugin For jQuery - Calendar.js

File Size: 4.32 KB
Views Total: 2951
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Minimalist Calendar Plugin For jQuery - Calendar.js

The Calendar.js jQuery plugin makes it easier to embed a simple calendar widget into the webpage. The plugin provides a function that resets any previously stored data and reinitializes the calendar from scratch. Accepts a single month as argument. Only constructs the calendar for the current year.

How to use it:

1. Insert the latest jQuery JavaScript library and the calendar plugin's files into the html file.

<link rel="stylesheet" href="calendar.css">
<script src="" 
<script src="calendar.js"></script>

2. Create the html for the calendar widget.

<table id="calendar">
  <tr id="monthrow">
    <th colspan="7">
      <button id="prev" onclick="prevMonth()">&#10094;</button>
      <span id="month"></span>
      <button id="next" onclick="nextMonth()">&#10095;</button>
  <tr class="daysoftheweek">

3. That's it. To override the default month names, follow this step:

let monthNames = [

This awesome jQuery plugin is developed by initforcode. For more Advanced Usages, please check the demo page or visit the official website.