vendredi 14 août 2015

Checkbox checked not raising on change event

I am calling function testing(id) that adds label check box. but when i am checking the checkbox on change event not getting raised

function testing(id) {
    $('.todo-card').prepend('<div class="todo-task"> ' +
    '<input type="checkbox" id="'+id+'"/> '+
    '<label for="'+id+'">'+$("#todoadd").val()+' <span class="todo-remove mdi-action-delete"></span> '+
    '</label> </div> ');
}

 <script>
    $(document).ready(function () {
            });
    $("input[type=checkbox]").change(function () {
              alert("asdasdada");
          });
 <script>




Aucun commentaire:

Enregistrer un commentaire