I'm trying to bind zclip with live:
$('.code').live('click', function () {
$(this).zclip({
path: '<%= asset_path "ZeroClipboard.swf" %>',
copy: $(this).text()
});
...
});
It doesn't seem to work that way. Any clues?
I need to do live because some DOM elements are added with ajax.