When I add something of the class "myClass" I want to call a function on this element.
It would be something in the lines of:
jQuery(".error_message").live("load",function(){
alert("test"+this);
});
... except this doesn't exist.
What's the best way of doing this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…