Write plugins! It's easy:

$.fn.myReplaceWith = function () {
  var ret = $( arguments[0] );
  this.replaceWith( ret );
  return ret;
};

On Sep 22, 3:15 pm, redcom <[EMAIL PROTECTED]> wrote:
> If anyone knows a jQuery way to replace a node and return the new node
> object that would be great (replaceWith returns the old object)

Reply via email to