[jQuery] Re: assign to outerhtml

2008-03-04 Thread pihentagy
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) }

[jQuery] Re: assign to outerhtml

2008-03-03 Thread Jeffrey Kretz
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