sufee-admin-dashboard icon indicating copy to clipboard operation
sufee-admin-dashboard copied to clipboard

Can't trigger a $(document).ready(function(){

Open kreamas opened this issue 6 years ago • 1 comments

Hi.

I've added some buttons to the template and I need to assign a specific function to each one using

$(document).ready(function(){ $("#mybutton").click(function(){ alert('hello this test'); }); });

But when I press my button...nothing happens.

Am I doing something wrong?

kreamas avatar Aug 27 '18 03:08 kreamas

I've had some issues with this too, solved with

jQuery(document).ready(function(){
    jQuery("#mybutton").click(function(){
    alert('hello this test');
    });
});

stsilversurfer avatar Sep 20 '18 18:09 stsilversurfer