In addition, you can display the number of available characters (or
words) using the maxlength plugin:
http://remysharp.com/2008/06/30/maxlength-plugin/
That can also enforce a maxlength, though I don't recommend that
option - it should be possible to enter a too-long text, then shorten
it.

Jörn

On Thu, Jul 2, 2009 at 9:26 PM, Manuel Munoz Solera<mam...@mamuso.net> wrote:
>
> Hi Jonathan,
>
> You can use the validation / maxlenght method
> http://docs.jquery.com/Plugins/Validation/Methods/maxlength
>
> With this validation you can prevent the form submission if the user types
> extra content in the input field.
>
>
> --
> mamuso
>
>
> El 02/07/2009, a las 20:45, jonathan escribió:
>
>>
>> is there a way to prevent user from adding more characters into a text
>> input based on a validation rule(eg. you entered more than n words,
>> you can't enter more, but you can delete or edit)?
>> I think I'll have to programmatically delete the extra letter(s) that
>> user just input somehow if the addition causes a violation of the
>> rule, is this the best way?
>> thanks
>
>

Reply via email to