Say I have a table:
1 2 Edit>
-
jQuery's replaceWith()
. Example:
$(document).ready(function() {
$('#mytable .edit').click( function() {
var tr = $(this).parent();
var new_row = '3 4 Save '
tr.replaceWith(new_row); // code to replace this row with the new_row
});
} );
- 热议问题