How to associate the click event with the .myclass class so that the handler runs only once for all .myclass elements and does not execute again if the user clicks on another .myclass element.
$('.myclass').one('click', function() {...});
will execute the handler once for the .myclass element, but I need the handler to be executed once for all .myclass elements.
thank
source
share