Can I change the appearance property of a Bootstrap4 Alert control at runtime? THis does not work:
Alert1.appearance = warning
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…
$("#Alert1").removeClass("alert-success")
$("#Alert1").addClass("alert-warning")
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.