unbind before bind
$(elm).unbind('click');
$(elm).bind("click", function() {
});
may be a modification like this
if(!$(elm).unbind('click')) {
$(elm).bind("click", function() {
alert("This element was only bound if it was not bound");
});
}
On Sat, Jan 2, 2010 at 7:28 PM, ranacseruet <ranacseruet@gmail.com> wrote:
I need to check whether an element is bound to an event or not. How to
achieve this?
No comments:
Post a Comment