Hi
I know that to change the appearance of a BS Label I probably have to use:
$("#label").removeClass(“prefix-dark”);
$("#label").addClass(“prefix-secondary”);
I just don’t know what that ‘prefix’ needs to be. Can anyone help?
Thanks.
Hi
I know that to change the appearance of a BS Label I probably have to use:
$("#label").removeClass(“prefix-dark”);
$("#label").addClass(“prefix-secondary”);
I just don’t know what that ‘prefix’ needs to be. Can anyone help?
Thanks.
If you do a right click on the control in Chrome, then select Inspect, you can see the classes:
<span id="Label1" style="font-family:inherit;padding-left:4px;padding-right:4px;border-radius:0px;" class="text-secondary collapse show" data-i18n="Label">Label</span>
So in this case, you’ll probably want to remove text-secondary
and add the new class.
Brilliant, thanks very much. I’ll remember that in future.