I have 4 buttons in this code. When selecting the "all" button, I would like the other 3 buttons to uncheck and refresh. Here is what I have:
$('div.regions').find('input:checked').each(function () {
var id = this.id;
var now = moment();
if (id == "ALL")
{
if (item.Date >= now){ data.push(item); }
}
else if (id == item.Region)
{
if (item.Date >= now){ data.push(item); }
}
});
Here is a jsfiddle of the code: http://jsfiddle.net/ZHvYH/ Can anyone help?