Say I have
$(\":input[type=text]:first\")
How do I get
Use jQuery.html() by appending to a created element.
$('').append($(":input[type=text]:first").clone()).html()
Here is a fiddle providing an example: http://jsfiddle.net/Zwbmx/1/