I’m sorry for my bad english..
I did a jQuery function that when the user calls the function, it’s creating an element on the page. To that elemet I did a jQuery click event and its working fine,
But if the user calls the function 3 times like this:
$.someFunction();
$.someFunction();
$.someFunction();
If the user clicks the first element, it will do 3 times whats in the click’s event callback function, and if the user clicks the second element, it will do 2 times whats in the click’s event callback function and if the user do it on the last one, it will do it once.
I want that when the user click every element then the callback function will happen just one time.
How can I fix that problem?
Try doing something like: