Append text into a div with Jquery
<p>I've tried the following code in my sample page and it doesn't work.All I'm trying to do is just append some text into a div on the page when the button is clicked.</p>

<pre><code>&lt;asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"&gt;
    &lt;script type="text/jscript"&gt;
        $(document).ready(function () {
            $('#Button1').click(function () {
                $('#testdiv').append("Hello World!!");
            });

        });

    &lt;/script&gt;
    &lt;input id="Button1" type="button" value="button" /&gt;
    &lt;div id="testdiv"&gt; 
    adiv
    &lt;/div&gt;
&lt;/asp:Content&gt;
</code></pre>

<p>Please guide me on how to get this simple thing to work in jquery...</p>

<p>Thanks</p>

<p>Edit:I updated my code as you suggested...still doesn't work...please help me...Thanks</p>
