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:

$("Button[data-fieldname=update]").addClass("btn-danger");

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

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

dialog.fields_dict.update.$wrapper.addClass("btn-danger");

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.

Thanks

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…

ref,/