在jQuery中删除事件处理程序的最佳方法?
问题: I have an input type="image" . 我有一个 input type="image" 。 This acts like the cell notes in Microsoft Excel. 这就像Microsoft Excel中的单元格注释一样。 If someone enters a number into the text box that this input-image is paired with, I setup an event handler for the input-image . 如果有人在与该 input-image 配对的文本框中 input-image ,我将为 input-image 设置一个事件处理程序。 Then when the user clicks the image , they get a little popup to add some notes to the data. 然后,当用户单击 image ,他们会弹出一个弹出窗口以向数据添加一些注释。 My problem is that when a user enters a zero into the text box, I need to disable the input-image 's event handler. 我的问题是