how to avoid duplicate bindings?
Hello - What's the most elegant way to avoid duplicate event handler bindings in jQuery?
For example, for a ddl named "myDdl" a basic handler might look something like this:
$('#myDdl').change(function(){ alert('myDdl changed');});
I have a scenario where duplicate handlers are getting added for myDdl.
So what's the most elegant guard clause I can use to avoid this?