Bootstrap4 Alert Control appearance

Can I change the appearance property of a Bootstrap4 Alert control at runtime? THis does not work:

Alert1.appearance = warning

The appearance property you set at Design time sets some classes in the control. To do this at runtime, you need to change those classes. A little jQuery helps…


Another way to do this might be to have two separate Alerts: one a success, the other a warning. Just call the one you want to see.

Thanks! That did the trick.