javascript - How to use live method with zclip plugin? -


how use live method -> http://www.steamdev.com/zclip/

edit:

$(document).ready(function(){ $('a#copy-description').zclip({ path:'js/zeroclipboard.swf', copy:$('p#description').text() }); 

i need use live method cuz a#copy-description generate via javascript.

try use livequery instead of live. way you'll able bind zclip when appears in dom.

$(document).ready(function(){    $('a#copy-description').livequery(function(){      $(this).zclip({ path:'js/zeroclipboard.swf', copy:$('p#description').text();   }); }); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -