outerhtml

JAVASCRIPT: IE: outerHTML

Problem i encounter with outerHTML using IE Browser if i say: txt="Update Complete!"; msg = sub.appendChild(d.createElement("p")); msg.outerHTML = txt; It Works Fine: But if i say txt="1 Error:<ul><li>Some Error</li></ul>"; msg = sub.appendChild(d.createElement("p")); msg.outerHTML = txt; Gives me an error of: Message: Unknown r...

How to use outerHTML in JavaScript?

How to use outerHTML in JavaScript? Thanks ...

Why getting an outer HTML does not work ?

I try to get the outer HTML in two different ways, based on this question. Unfortunately, none of them is giving the expected result: HTML: <div id='my_div'>Hello</div> JS: $(function() { document.write('[' + $('#my_div').clone().wrapAll("<div />").parent().get(0).innerHTML + ']<br />'); document.write('[' + (new XMLSerializ...