Response title
This is preview!
<div class="demo-container">
<div class="demo-box" id="demo-box">Demonstration Box</div>
<ul>
<li>list item 1</li>
<li>list <strong>item</strong> 2</li>
</ul>
</div>
The code $('div.demo-container').text()
would produce the following result:
Demonstration Box list item 1 list item 2
$('
Demonstration Box
').id()
would produce:
Demo-box
© 2013 jQuery Foundation
Sponsored by and others.