Answers for "javascript condition based on table cell value"

0

javascript condition based on table cell value

$(document).ready(function () {
    $("#tblstudents td:nth-child(3)").each(function () {
        if (parseInt($(this).text(), 10) <= 400) {
            $(this).parent("tr").css("background-color", "red");
        }
    });
});
Posted by: Guest on March-29-2022

Code answers related to "javascript condition based on table cell value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language