tags:

views:

39

answers:

1

Something like follows:

$target.replace('<div>test</div>')
+3  A: 
$(target).replaceWith('<div>test</div>');
Greg W
http://docs.jquery.com/Manipulation/replaceWith
Jason Aller