jquery - How to add a date filter in full calendar -


how can add date filter in full calendar, example: go 2017-12-15?

i want user select specific date show related events.

is possible that?

first, initialize fullcalendar of supported options. next, call gotodate method using trigger of choice. in example, trigger button click.

html

<div id="my_calendar"></div>  <button id="my_button">go 2017-12-15</button> 

js

$(function(){    $('#my_calendar').fullcalendar({     // options here...   });    $('#my_button').click(function(){      // call fullcalendar 'gotodate' method     $('#my_calendar').fullcalendar('gotodate', '2017-12-15');    });  }); 

Comments