The todolist plugin manages checkbox/radio inputs within a list, toggling a .done class on the parent list item.
Options:
onCheck: Callback function when an item is checked.onUncheck: Callback function when an item is unchecked.
Note: This plugin works best with the iCheck plugin, but falls back to standard input change events if iCheck is not present.
// Initialize a todo list widget
$('#todo-widget').todolist({
onCheck: function(ele) {
console.log('Item completed:', ele);
},
onUncheck: function(ele) {
console.log('Item unchecked:', ele);
}
});