I have used $("#parent").html()
to get the inner html of #parent
, but how do I get the html of the parent itself?
The use case is, I grab an input node like this:
var field = $('input');
I would like to be able to get the raw html of that node (<input type='text'>
) with something like field.html()
, but that returns empty. Is this possible?