Script not working after pageload
<p>I am using javascript to show reamaining character show for sms_textbox. which allow only 160 character.</p>

<pre><code>   &lt;script type="text/javascript"&gt;
            var characterLimit = 160;
            $(document).ready(function () {
                $("#lblremaingCharacters").html(characterLimit);
                $("#txtmessage").bind("keyup", function () {
                    var characterInserted = $(this).val().length;
                    if (characterInserted &gt; characterLimit) {
                        $(this).val($(this).val().substr(0, characterLimit));
                    }
                    var characterRemaining = characterLimit - characterInserted;
                    $("#lblremaingCharacters").html(characterRemaining);
                });
            });
        &lt;/script&gt;
</code></pre>

<p>But this script working good only at page load, not working when other asp button click event fire.</p>
