I have a Datepicker and 2 drops down menus on my page. After the user selects the date i need a filter to check the date of the data values of the dropdowns and show or hide and bold the dates after the date selected.
$('#Start').on('selectedFromDay', function(){ var value= this.value; var dateText = datepicker(); $('#results-tbody tr').each(function () { var element = $(this); element.data('filters', element.data('filters').replace(/changes/g, '')); if (value !== 'All' && dateText >= element.data("oc").indexOf(value) === -1) { element.data('filters', element.data('filters') + 'changes'); } count = count + hideOrShow(element); }); setResultsCount(count); });