jquery question regarding text change
<pre><code>&lt;script type="text/javascript"&gt;

    $(function () {

        var text3;
        $('.HideButton').click(function () {


            text3 = $('#MessageText').text;

            var theButton = $(this);

            $('#disclaimer').slideToggle('slow', function () {
                theButton.val($(this).is(':visible') ? 'Hide' : 'Show');
            });


            $('&lt;p&gt;' + text3 + '&lt;/p&gt;').addClass("new").insertAfter('#disclaimer');
            return false;



        });


    });
</code></pre>

<p>updated...code above doesnt change the buttons text</p>

<p></p>

<pre><code>&lt;p id="disclaimer" &gt; DDDDDDDDDDDDDDDDDDDDDDDDDD&lt;/p&gt;
&lt;asp:Button ID="Button1" CssClass="HideButton" runat="server" Text="Hide" /&gt;
</code></pre>

<p>I want the text of the button to change each time i press on it..But it doesnt</p>

<pre><code>&lt;p  id="disclaimer"  &gt; 

    &lt;input id="MessageText" type="text" /&gt;


&lt;/p&gt;

&lt;asp:Button ID="Button21" CssClass="HideButton" runat="server" Text="Hide" /&gt;
</code></pre>

<p>As message typed in the textbox..it should appear while "#disclaimer disappear</p>
