How can I run a function on checkbox change?
I\'m trying to write small checkbox replacing function base on that - but I\'m doing something wrong.
Code:
Is this what you want? I am under the impression that you are over-complicating things.
$('input[type="checkbox"]').change(function() { alert ("The element with id " + this.id + " changed."); });