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