Dropit icon indicating copy to clipboard operation
Dropit copied to clipboard

Can't init dropit

Open dylanh724 opened this issue 8 years ago • 1 comments

jq 2.2.0 <script src='js/dropit.js' type='text/javascript'></script>

<link href="css/dropit.css" rel="stylesheet" type="text/css">

$( document ).ready(function() 
{
    // Copy+Paste sample .menu
    $( '.menu' ).dropit({
        afterLoad: function(){ console.log("dropit initialized.") } // Triggers when plugin has loaded
    });
}

Nothing was showing up on click, so I added the callback option afterLoad and I'm not getting this console msg.

dylanh724 avatar May 03 '16 09:05 dylanh724

Make sure you have coresponding HTML markup + try

(function($){
  $('.menu').dropit({
    afterLoad: function(){ console.log("dropit initialized.") } // Triggers when plugin has loaded
  });
})(jQuery);

ghost avatar Jul 06 '16 21:07 ghost