The objective is to execute href from input checkbox once checked
checkbox Input
<input type="checkbox" value="{{$todo -> id}}" name="{{$todo -> ToDoName}}">
js
/* The todo list plugin */
$(".todo-list").todolist({
onCheck: function (ele) {
window.console.log("The element has been checked");
return ele;
},
onUncheck: function (ele) {
window.console.log("The element has been unchecked");
return ele;
}
});
Aucun commentaire:
Enregistrer un commentaire