I have a group of objects on my page. I want to get the first one, so I do this:
var tmpLi = li.first();
console.dir(tmpLi);
This works fine; it returns this in firebug:

I need to return the value of the outerHTML element, but can't seem to figure out how to get it. I've tried:
var tmpLi = li.first().data("outerHTML");
and
var tmpLi = li.first().attr("outerHTML");
both of which return "undefined". Help?