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:
In your example the selector uses checbox, should be ".checkbox"
I modified your example so it works: http://jsfiddle.net/yGBAK/41/
I swapped the ids for elements.