EDITABLE CODE:
LiveDemo:jQuery - Executing Event Handlers only Once
Note:If no value is returned , jQuery removes all classes from the element.