[jQuery] how to output element in string
<a id="link" href="/test.html" target="_new">my link</a>
after remove the target attribute
$("#link").removeAttr("target");
I want to get the string is
<a id="link" href="/test.html" >my link</a>
but how could I ?
I don't think jquery have toString() function,
any idea ?