Hi all,

I was wondering if anyone knows how I might be able to pass around two
sibling nodes constructed on the fly? I'm building a definition list,
and have a function which creates two adjacent domnodes, something
like:

var term = $('<dt>term</dt>');
var defn = $('<dd>defn</dd>');

I was hoping to return them to be inserted into the list:

return term.after(defn);

However only one of the nodes gets returned. I could wrap them in a
single container, return that container, and then take them back out,
but that is somewhat roundabout.

Any ideas?


Thanks,
Keith

Reply via email to