this is my code. Dont know what wrong in it but not working.
<script>
$(document).ready(function() {
$('#copy').click(function(e) {
alert("inn");
$("#dynamic").zclip({
path:'ZeroClipboard.swf',
copy:$('input#dynamic').val(),
afterCopy:function(){
alert("immm");
}
});
});
});
</script>
HTML:
<input type="text" id="dynamic" value="abcd" />
<div id="copy">CLICK</div>
This should suffice/work, since zclip has default click-event as eventhandler: