How to get HTML of any control using jQuery
<div id="dvExample">
<h1>
jQuery By Example Rocks..
</h1>
<h2>
It has really cool tips.
</h2>
</div>
Below jQuery code will display an alert with div's html.
$(document).ready(function()
{
alert($("#dvExample").html());
});
<div id="dvExample">
<h1>
jQuery By Example Rocks..
</h1>
<h2>
It has really cool tips.
</h2>
</div>
Below jQuery code will display an alert with div's html.
$(document).ready(function()
{
alert($("#dvExample").html());
});
0 comments:
Post a Comment