You can put the zclip binding in a callback function in your ajax method, for example:
$.post('ajax', {data:"data"}, function(data){ //add dom elements .... //bind zclip $('.code').each(function(){ $(this).zclip({ path:".ZeroClipboard.swf", copy:$(this).txt() }); }); }, 'json');
Each () should avoid $ ('. Code') having two or more elements.
source share