"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//

jquery - live query plugin

your example follows

$('.some_class').livequery(function() {  $(this).append('something');}); 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -