I\'ve found lots of examples on this topic.. however, I do not fully understand. Does my logic seem correct? I have a div as button (class of .myClass) and I don\'t want i
You could use namespaced events, with on(). bind() has been deprecated.
on()
bind()
var foo = function () { ... } if (myCount) $('.myclass').on('click.foo', foo) else $('.myclass').off('.foo')