I have a form field that is a <cftextarea> field that I
would like to limit end users to only be able to enter 255
characters. I have tried the following:
<cftextarea name="lDescription" required="no" tabindex=5
class="boxbig"
style="height: 160px;" validate="maxlength"
validateAt="onBlur" maxlength="255" message="The listing you have
entered has exceeded 255 characters! The administrator may choose
to condense the listing before making it
available"><cfoutput>#Trim(Detail.lDescription)#</cfoutput></cftextarea>
But this only shows the warning when the user submits the
form and saves the entire text to the db. Is there a way that I can
limit the text that they type into the field so that it only allows
the intended maximum characters or is this not possible with a
textarea form field or a cftextarea form field? Thanks in advance
and sorry if this is a simple problem.