I was about to write something very similar myself, but now I'm just
gonna pinch yours. ;oD
Thank a lot...
Stephen
Pascal Peters wrote:
> Only in _javascript_
>
> function limitSize(obj,len,label){
> if(obj.value.length > len){
> obj.value = obj.value.slice(0,len);
> if(label) alert(label + " can be max. " + len + "
> characters long!");
> }
> }
>
> You can call this function in the js form validation and/or in the
> events of the textarea directly:
>
> <textarea cols="50" rows="5" name="ORG_DESC_ACTIVITY" wrap="soft"
> description of the organisation\'s
> activities and objectives');" > > description of the organisation\'s activities and
> objectives');"></textarea>
>
> > -----Original Message-----
> > From: Robert Orlini [mailto:[EMAIL PROTECTED]
> > Sent: dinsdag 17 februari 2004 14:28
> > To: CF-Talk
> > Subject: textarea field limit
> >
> > Is there any way to limit how much text is put into a
> > textarea field via a form? I want to prevent too many
> > characters from being typed in similar to the maxlength field
> > in a onle line text box.
> >
> > Thx.
> >
> > Robert O.
> >
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]