Hi all,
I've got a div that looks like this:
<div id="exampleDiv" class="class1 class2" title="example title"></div>
I've selected with JQuery using this statement:
var $div = $('#exampleDiv');
What I'd like to get is a string of the tag itself as html, so that I actually get:
"<div id='exampleDiv' class='class1'....", etc.
Does anyone know of a JQuery function I could use that does this, given the selector? I'm thinking something like $div.htmlHeader()
or something like that.
Any help would be appreciated. Thanks.