Event unbind and later re-bind in Jquery
Hi,
Im working on a Grid system, which has the following features:
- On tr hover I have added a click event, which triggers an edit mode
- When switching to edit mode, the click event is unbind, so that one cannot edit multiple rows simultaniously
- After update, I'd like to re-bind the previous click functionality. However, I cant seem to do that. My code either does nothing, or Im getting an Jquery error below. Trying to define the original click event again does not work either. So what am I missing here? How can I re-bind an un-bind event ? Or can I?
Jquery error: "d is undefined