FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Limiting # characters in textarea
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Limiting # characters in textarea [message #182531 is a reply to message #182529] Sat, 10 August 2013 23:23 Go to previous messageGo to previous message
bill is currently offline  bill
Messages: 310
Registered: October 2010
Karma:
Senior Member
On 2013-08-10 7:11 PM, Martin Leese wrote:
> Twayne wrote:
>> Hi all,
>>
>> Win 7, XAMPP Local Server, PHP 5.3. Target; Online Submitted Forms for
>> the general public:
>>
>> I am trying to come up with a way to force a limit to the length of a
>> textarea.
> ...
>> I discovered maxlength has been added to HTML 5 but many people aren't
>> using HTML 5 compatibility yet.
>
> Yes, but are they using maxlength?
> Maxlength has been allowed in <input> tags
> since HTML 4 (1999), so my guess that all
> modern browsers also use it with <textarea>.
> However, this is only a guess.
>

Unfortunately, no, maxlength does not work on textarea. It was added to
HTML 5 but not all browsers will honor it, Opera in particular. Thus my
quest for a way to mimic it.

Twayne`
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Sexy CATHERINE ZETA JONES Sex Scandals
Next Topic: Email attachment 0bytes using php4
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 15:33:23 GMT 2024

Total time taken to generate the page: 0.04806 seconds