rick Posted December 21, 2017 Posted December 21, 2017 Does anyone know how to set the disabled attribute of a button? I found nothing in inputfieldbutton/submit which allows this setting.
flydev Posted December 21, 2017 Posted December 21, 2017 Just add the disabled attribute to the button : $f = $this->modules->get('InputfieldButton'); $f->attr('disabled', 'disabled'); 6
Gadgetto Posted January 11, 2020 Posted January 11, 2020 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'); 2
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now