I have a page with about 30 forms on it, for client management, but the forms are only called to the page when the user clicks to open a specific form. Part of the output is a jQuery.getScript()
function to load the source file for that particular form. When the form is saved or cancelled, the form slides up and is removed from the page.
I ran into a problem when opening the same form more than once on a single page load. The js source file was added to the dom each time the form was called via ajax, and thus, on subsequent save events, the save function was performed multiple times, once for each time the js source file had been loaded into the dom.
I found a solution, and checked to make sure it was encouraged to share a question/answer before I posted this. Seems it is. Solution below in my Answer.