javascript - How Select Table Row -
how select table row based on table header , first column values. can please me using javascript or jquery . please find attache image reference.
$(document).ready(function () { var json = {1: 'aoc', 2: 'bas', 3: 'cts:ele', 4: 'coe:dev'}; $('table#xss tr').each(function () { var type = $(this).find('td:nth-child(2)').text(); var res = type.split(";"); var thisrow = $(this); $.each(json, function (key, val) { (var = 0; < res.length; i++) { if (val == res[i].trim()) { var cc = parseint(key) + 2; thisrow.find('td:nth-child(' + cc + ')').html('****') } } // }); }); });
Comments
Post a Comment