How do i get the html on '#container' including '#container' and not just what's inside it.
<div id="container">
<div id="one">test 1 </div>
<div id="two">test 2 </div>
<div id="three">test 3 </div>
<div id="four">test 4 </div>
</div>
I have this which gets the html inside #container. it does not include the #container element itself. That's what i'm looking to do
var x = $('#container').html();
$('#save').val(x);
Check http://jsfiddle.net/rzfPP/58/
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…