A Small Calendar With Month View Using jQuery | huicalendar

huicalendar is a jQuery mini calendar. It can show the month you provided, show the active dates you selected, get the month users selected, get the date users selected.

jquery calendar week view, responsive event calendar jquery, jquery calendar example, calendar jquery, jquery calendar with events, best jquery calendar plugin with events

How to make use of it:

1. Include jQuery library and the huicalendar plugin’s information on the web page.

<script src="/path/to/cdn/jquery.min.js"></script>
<link rel="stylesheet" href="/path/to/huicalendar.css" />
<script src="/path/to/huicalendar.js"></script>

2. Create a containe wherein you wish to place the calendar.

<div class="myCalendar">
</div>

3. Initialize the plugin to generate a fundamental calendar contained in the container you created.

$('.myCalendar').huicalendar({
  // options here
})

4. Set the preliminary date.

$('.myCalendar').huicalendar({
  viewDay: new Date('2021/07/01')
})

5. Specify which days must be enabled on init.

$('.myCalendar').huicalendar({
  enabledDay: [1,2,3],
})

6. Trigger a function on month change.

$('.myCalendar').huicalendar({
  // options here
}).on('changeMonth', function(e){
  console.log(e.year)
  console.log(e.month)
  $(this).huicalendar({
    enabledDay: [4,5,6],
    viewDay: new Date(e.year+'/'+e.month+'/01')
  }, 'update')
})

7. Trigger a function on date change.

$('.myCalendar').huicalendar({
  // options here
}).on('changeDate', function(e){
  console.log(e.year)
  console.log(e.month)
  console.log(e.date)
})

Tiny Calendar With Month View, huicalendar Plugin/Github, jquery ui calendar


See Demo And Download

Official Website(codehuicn): Click Here

This superior jQuery/javascript plugin is developed by codehuicn. For extra advanced usage, please go to the official website.

Related Posts

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

jquery-cookie-consent

Simple jQuery Cookie Consent Plugin

jquery.cookie-consent is a simple jQuery plugin to request consent to use cookies. An easy-to-use and highly customizable cookie consent bar that informs your visitors of the use…

Timepicker-Plugin-for-jQuery

Timepicker JavaScript Plugin for jQuery Inspired by Google Calendar

jquery.timepicker is a lightweight jQuery timer plugin inspired by Google Calendar. It supports both mouse and keyboard navigation and weighs 5.5KB minified and compact. Features: Highly customizable…

angular-ngx-carousel-slider

A Lightweight, Touchable, and Responsive Angular Universal Carousel Library

ngxCarousel is a lightweight, tactile, and responsive library for creating an angular carousel. No dependencies, no more hammer. Must Read: Angular Responsive Image Slider With Lightbox Popup…

random-number-picker

Generate a Random Number Picker In Vanilla JavaScript

Random Number Picker is a Vanilla JS-based number picker that allows you to generate a random number within a specified range. Must Read: Generating Lottery Numbers Using…

Nepali-Date-Picker-jQuery-Plugin

Nepali Date Picker jQuery Plugin | nepaliDatePicker

Nepali Date Picker is a customizable, easy-to-use, and input-based date picker plugin mostly based on the Nepali calendar. Users can choose a Nepali date in the navigable…