Press "Enter" to skip to content

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.

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *