I recently created a view page where I implemented some jQuery code:
<script type="text/javascript">
$(document).ready(function () {
var hdrname = $('#headername').text();
alert(hdrname);
if (hdrname == "Pending Assignment") {
$('#lst1').addClass('highlight1');
alert("hcsgiahf");
$('#tab2').removeClass('highlight1');
}
else if (hdrname == "Assigned With L1 Support") {
alert($('#tab1').text());
alert("hello");
$('#tab1').removeClass('highlight1');
$("#tab2").addClass("highlight1");
}
//To get No of call start
});
//To get No of call end
However, after testing the page, I noticed that the CSS class highlight1 is not being applied to the specified ID. Can anyone provide assistance in understanding why this might be happening?