zeroClipboard copy to click not working -
i have searched question related zeroclipborad, can not done. having wordpress site, running on bootstrap based theme. want have copy option. made button named copy , after copy, want changed name copied. have following code, not work.
<div id="code_id">mycode</div> <button class="btn btn-default" id="copy-button">copy</button> <script language='javascript' type='text/javascript'> jquery(document).ready(function(){ jquery('#copy-button').zclip({ path:'js/zeroclipboard.swf', copy:'jquery('#code_id').text()' aftercopy:function(){ jquery("#copy-button").text("copied"); } }); }); </script>
Comments
Post a Comment