Thanks for the answer.
After the second search in the docs, I've realized the replaceWith
function
http://docs.jquery.com/Manipulation/replaceWith
So outerHTML setter's jquery equivalent is replaceWith
$.ajax({
url:'blabla'
success: function(result) {
$('theid').replaceWith(result)
}
I had to do something similar, and this is how I solved it.
$.ajax({url:'blabla',success:process});
function process(results)
{
var id = 'therowid';
var origRow = $('#'+id);
var newRow = $(results).insertAfter(origRow);
origRow.remove();
newRow.attr('id',i
2 matches
Mail list logo