Sure:

messages: {
  comments: {
    maxlength: function(max) {
      return "'Comments' must not exceed " + max + " characters. You entered
" + $("input[name=maxlength]").val().length + " characters";
    }
  }
}

Jörn

On Tue, Nov 17, 2009 at 8:16 PM, Kasvis <kasvis...@gmail.com> wrote:

> Hi,
>
> I am trying to customize the message for maxlength rule.
>
> I want to show the current text length entered in the message
> something like this.
>
> 'Comments' must not exceed 660 characters. You entered 754 characters
>
> Is there a way to create the message to include the current length.
>
> Thanks
>
>

Reply via email to