rick Posted December 21, 2017 Share 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. Link to comment Share on other sites More sharing options...
flydev Posted December 21, 2017 Share Posted December 21, 2017 Just add the disabled attribute to the button : $f = $this->modules->get('InputfieldButton'); $f->attr('disabled', 'disabled'); 6 Link to comment Share on other sites More sharing options...
rick Posted December 21, 2017 Author Share Posted December 21, 2017 Thank you. 1 Link to comment Share on other sites More sharing options...
Gadgetto Posted January 11, 2020 Share 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 Link to comment Share on other sites More sharing options...
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