How change background color with conditionally.
HTML:
<label class="control-label bold" id="lbstatus"></label>
JS:
if ($("#lbstatus").text() == "progress")
{
//background color label change
}
How change background color with conditionally.
HTML:
<label class="control-label bold" id="lbstatus"></label>
JS:
if ($("#lbstatus").text() == "progress")
{
//background color label change
}
Use jQuery css:
if ($("#lbstatus").text() === "progress")
{
$("#lbstatus").css("background-color", "blue");
}