javascript - Fullcalendar event filter with checkboxes -


i'm trying filter events checkboxes. tried (based on question/answer: https://stackoverflow.com/a/29993265/4876591)

eventrender: function(event, element) {          return ['all', event.state].indexof(function(){                     $('input[type="checkbox"]').each(function() {                     return $(this).val()                });         }) >= 0;            } 

on change event:

$('input[type="checkbox"]').on('change', function(){    $('#mycalendar').fullcalendar('rerenderevents'); } 

html:

<input type="checkbox" name="estado" value="all">all <input type="checkbox" name="estado" value="0">open <input type="checkbox" name="estado" value="1">close 

any advice problem? in advance


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -