Get text content of div

var databox = $(".html").text(); alert(databox);

by BinaryAcid

HTML

<script src="http://jslib.dotcloud.com/fiddle-require.js"></script>
<p id="styleselector">yo</p>

<div class="html">
<p>hello1</p>
<p>hello2</p>
</div>

JavaScript

$(function() {
    
//$(".yellow h1").css("background-color", "yellow");
// $("#styleselector").css("display", "none");
    
var databox = $(".html").text();

alert(databox);
    
});