I have HTML input and button elements. I use the buttons to submit forms, open secondary windows, etc. The problem is, a single click is turning into 2 (and sometimes many more
You can use one():
$("div").one("click", function(e) { ... });
Attach a handler to an event for the elements. The handler is executed at most once per element.