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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -