Create multiple modal windows with javascript (+jQuery), what is the best practice to indentify wind
- by Kirzilla
Hello,
When creating every instance of Window object I should bind close button of each window to closing this window. But how should I identify windows? Should I create unique id for each Window instance or maybe another way? What is the best way to create such identifiers, maybe some kind of singleton object with id parameter which should be incremented each time when window is created?
Thank you.