latest Post

How to get HTML of any control using jQuery

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());      

});

About Mallikarjun A

Mallikarjun A
Recommended Posts × +

0 comments:

Post a Comment