How to limit character in jquery tags input?
<p>i have used the following code to limit the character but it is not working.. pls help me. thanks in advance.</p>

<pre><code> &lt;td nowrap="nowrap"&gt;
     &lt;asp:TextBox MaxLength="60" runat="server" ID="Keyword" CssClass="TaskTitle" Width="270px"
                            TextMode="SingleLine" /&gt;
 &lt;/td&gt;

$('#Keyword_tag').bind('keyup', function() {

    var characterLimit = 60;
    var charactersUsed = $('#Keyword').val();

    charactersUsed = charactersUsed.replaceAll(',');
           if (charactersUsed.length &gt; characterLimit) {
    alert(charactersUsed.length);
        charactersUsed.length = characterLimit;
        alert(charactersUsed.length);
        $(this).val($(this).val().slice(0, characterLimit));
        $(this).scrollTop($(this)[0].scrollHeight);
    }
</code></pre>

<p>I have to limit the character to 60 but when i assign the character limit value to character used it is not getting assigned. I am using jquery tags input plugin for the keyword field</p>
