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 enter image description here 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

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -