JSFiddle - React, Tailwind, and code Playground
HTML
<Label ID="Percent">Percent% = </Label>
<Label ID="lblPercentToBudget">110.00%</Label>
CSS
.choice{
margin:10px;
background:#FF7800;
}
JavaScript
$(document).ready(function(){
if (error == '') {
if ($("span[id*='lblPercentToBudget']").text() >= "110.00%") {
var domAlert = new DOMAlert(
{
title: 'Oops! There were some errors:',
text: "You have gone 110% or more over budgeted hours.",
skin: 'DOMAlert',
ok: { value: redirectURL.toString(), text: 'Okay', onclick: redirectUser },
cancel: { value: false, text: 'Close', onclick: showValue }
});
domAlert.show();
}
}
})