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

Autocomplete from fields above – Jquery

I have this form: <form> <input type="text" class="name" id="name1"> <input type="text" class="name" id="name2"> <input type="text" class="name" id="name3"> ... <input type="text" class="name" id="name100"> <input type="submit" value="Send"> </form> <script> $(document).ready(function() { var items = [ "", ]; $(".name").autocomplete({ source: items }); $('.name').on('keyup',…

VIEW QUESTION

Jquery append and Push not a function

Jquery push and append not working. I have this code <form action=""> <input type="text" name="text"> <input type="text" name="textw"> <button type="submit" name="submit">submit</button> </form> <p>teasdfas</p> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script> $('form').on('submit', function(e) { e.preventDefault(); let formata = $('form').serialize(); formata.append('id', '1300'); console.log(formata) }) </script> The…

VIEW QUESTION
Back To Top
Search