skip to Main Content

How can I remove all rows from a table except rows where first cell value contains a particular string? – Jquery

//Code that I have tried but it doesnt work: $('#historyOfStatus table td').not(':contains("Revisions Required – CM")').parents("tr").remove(); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div id="historyOfStatus"> <table> <tbody> <tr> <th>Value</th> <th>Date Time</th> <th>By</th> </tr> <tr> <td class="Data1">Draft</td> <td class="Data1">2022-11-14 13:34:31</td> <td class="Data1">Muhammad Akhtar</td> </tr> <tr> <td class="Data1">Revisions…

VIEW QUESTION
Back To Top
Search