$('input[type="checkbox"]').change(function() { alert ("The element with id " + this.id + " changed."); });