This is purely out of curiosity.
Is there any actual code for doing this in jquery?
$('div.withSomeclass').on('appear',function(){
// do something
});
UPDATE: Sorry, I wasn't complete in my question
What I'm trying to do is, whenever a DOM element is added do something with it. Not only when clicking it or something like that. As soon as the element with the selector (div.withSomeclass
) is added, I want to do something with it.