Open dylanh724 opened 8 years ago
jq 2.2.0 <script src='js/dropit.js' type='text/javascript'></script>
<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.
Make sure you have coresponding HTML markup + try
(function($){ $('.menu').dropit({ afterLoad: function(){ console.log("dropit initialized.") } // Triggers when plugin has loaded }); })(jQuery);
jq 2.2.0
<script src='js/dropit.js' type='text/javascript'></script>
<link href="css/dropit.css" rel="stylesheet" type="text/css">
Nothing was showing up on click, so I added the callback option afterLoad and I'm not getting this console msg.