How to completely disable a button in list view

mirceat

Member
Hello,

I'm using the php plugin in list and i need to disabled it after the button is clicked (to prevent multiple submissions), how can i do it? I tried this code (using JS Code area for the php list plugin) but i'm getting an error.

JavaScript:
$('.php-0').click(function(){
   $(this).prop('disabled', true);
});

Also tried with class "btn php-0 listplugin btn-default" and even tried to completely disable the button group (.btn-group), same error:

Error:

VM9263:1 Uncaught TypeError: Cannot read property 'click' of null

Thank you
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top