javascript - dynamically added HTML elements won't be affected by plugins ! -


there plugins such flowplayer overlay asks put "rel" attribute html element make trigger events ... problem , when create dynamically elements have rel attribute ,, won't trigger ... solution !?

you should use live() method trigger events dynamically created elements.

example:

$('selector').live('click', function(){   // code ......................... }); 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -