// (eg:if cell content are "YES" or "NO"...then if its "YES" then its color must be blue)I have given a link to "YES" where new page opens ....I tried it but text color changes to blue after I click on the link for "YES".
<style>
.clickData{
text-align: center;
text-decoration: underline;
-moz-text-decoration-color: red;
text-decoration-color: red;
font: bold;
cursor: pointer;
color:blue;
weightfont:bold;
}
</style>
onCellSelect: function(rowid, icol, cellcontent, e) {
if (icol === 10 && cellcontent !== "N/A") {
var ro_code = $('#rep').jqGrid('getCell', rowid, 'RO_CODE');
var insp_no = $('#rep').jqGrid('getCell', rowid, 'Inspection No');
var insp_date = $('#rep').jqGrid('getCell', rowid, 'Inspection Date');
InspComplete(ro_code, insp_no, insp_date);
tr = $("#rep")[0].rows.namedItem(rowid),
td = tr.cells[icol];
$(td).addClass("clickData").css("color", "blue");
} else {
tr = $("#rep")[0].rows.namedItem(rowid),
td = tr.cells[icol];
$(td).removeClass("clickData");
}
<script>
function InspComplete(ro_code, insp_no, insp_date) {
var popupWindow = null;
popupWindow = window.open('./Inspection/Summary/completeInsp.jsp?prepage=true&rep_type=VIEW&ro_code=' + ro_code + '&insp_no=' + insp_no + '&insp_date=' + insp_date, '_blank', 'scrollbars=1,width=1300,height=600');
popupWindow.focus();
}
</script>