So I am constantly adding new points to a graph and I want all of them to have the same click function. But it seems like when I run
$('.someClass').click(function(){})
it only applies to elements that currently have someClass. If I add a new someClass element, it does not have the click listener.
How do I get around this? Must I run click function every time I add an element?
Or even better consider delegate method.