dimanche 24 janvier 2016

Enable Button When Any Checkbox Values Change

I have a page with multiple checkboxes in varying states (checked or unchecked) . I'm trying to enable a button when any of the checkbox values change state.

Here is my code so far but it doesn't seem to work properly yet:

var checkboxes = $("input[type='checkbox']");
        
checkboxes.change(function(){
    $('#saveChanges').prop('enabled', true);
});



Aucun commentaire:

Enregistrer un commentaire