I have a view page and in which i applied a Jquery like
<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
But when i am running my page css class highlight1 is not applied on the specified id, can any1 help me why it happens..
alerts?