lundi 22 février 2016

Execute Checkbox action once checked

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