Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function () {
- jQuery(".td-module-comments a").each(function () {
- var commentText = jQuery(this).text().trim();
- if (commentText !== "0") {
- // Set yellow background color for the <a> element when comment value is not 0
- jQuery(this).css("background-color", "red");
- // Add a class to change the :after border color
- jQuery(this).addClass("highlight-after");
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment