Change Color of Custom Dialog Buttons

I want to change the color of buttons of my custom dialog. In version10, this was what I was using and it was working:


(I used predefined button’s classes and applied that).

Now in version11, this isn’t working so I was trying with something like this


But it is getting applied to whole field of button. Tried to change fields_dict with Buttons/Button but none worked.

Any help will be deeply appreciated.


Any suggestions ??

dialog.fields_dict.booking_sbmt.$input[0].className=“btn btn-primary btn-xs”;

here booking_sbmt is your field name…

please mark as solution…