How to change the table row value in existing table in jquery?
问题 I have one jquery script to control table row(tr) move up/down. Script $(document).ready(function() { $('#mytable a.move').click(function() { var row = $(this).closest('tr'); if ($(this).hasClass('up')) { row.prev().before(row); } else row.next().after(row); }); }); HTML <table cellspacing="1" cellpadding="1" width="250" align="left" bgcolor="#eeeeee" border="0" id="mytable"> <thead> <tr class="tablebody"> <th width="21" class="tablehead">S.No</th> <th width="119" class="tablehead">levels</th