I would suggest that you bind and decouple the individual functions that you call after entering elements on the page. Thus, you have full control over what happens exactly then.
So, first you create an element, and then just call the bindButton function. I often came across this problem when working with Ajax, and this solution is my absolute favorite.
function bindButton(){ $('#newButton').click(function(){
And then you create a similar function to cancel this click event whenever you want.
source share