"create" event using jquery's "live" -
is there way run code on new objects? this:
$('.some_class').live('create', function() { $(this).append('something'); }
so something
appended elements class some_class
(existing , future ones).
there jquery plugin called livequery covers requirements.
i think of plugin jquery .live() without need event ('click') etc. (it listens dom events)
you can find more info here//
your example follows
$('.some_class').livequery(function() { $(this).append('something');});
Comments
Post a Comment