Jump to content

Recommended Posts

Posted

Does anyone know how to set the disabled attribute of a button? I found nothing in inputfieldbutton/submit which allows this setting.

Posted

Just add the disabled attribute to the button :

 

$f = $this->modules->get('InputfieldButton');
$f->attr('disabled', 'disabled');
  • Like 6
  • 2 years later...
Posted
On 12/21/2017 at 5:38 PM, flydev ?? said:

Just add the disabled attribute to the button :


$f = $this->modules->get('InputfieldButton');
$f->attr('disabled', 'disabled');

To also give it a visual representation you can additionally add:

$f->addClass('ui-state-disabled');

 

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...