Re: [jQuery] (validate) custom message for maxlength

2009-11-17 Thread Jörn Zaefferer
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 wrote: > Hi, > > I am trying to cust

[jQuery] (validate) custom message for maxlength

2009-11-17 Thread Kasvis
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