Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] How can i strict the length of TextAread form element ?
- From: javascript@xxxxxxxxxx (Peter Brunone)
- Subject: [Javascript] How can i strict the length of TextAread form element ?
- Date: Fri, 21 Dec 2001 22:11:59 -0600
<TEXTAREA onBlur="checkLength(this,500)"></TEXTAREA>
function onBlur(myBox,myLength) {
if(myBox.value.length > myLength) {
alert("The size limit is " + myLength + "characters;\n you have entered "
+ myBox.value.length);
myBox.focus();
}
}
Cheers,
Peter
|-----Original Message-----
|From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On
|Behalf Of M. Amin
|Sent: Friday, December 21, 2001 5:31 PM
|To: java-script
|Cc: WDVL
|Subject: [Javascript] How can i strict the length of TextAread form
|element ?
|
|
|Dear All,
| I tried to strict the length of TextAread form element using the
|maxlength attribute but
|it did n't work. So, How can i strict the length of TextAread form
|element ?
|
|Any help will be appreciated,
|
|Regards,
| M. Amin
|
|_______________________________________________
|Javascript mailing list
|Javascript@xxxxxxxxxx
|https://lists.LaTech.edu/mailman/listinfo/javascript
|
- References:
- Prev by Date: [Javascript] what is the maximum for a drop down box...I stuff it with 4418 items
- Next by Date: [Javascript] How can i enable a hidden check box element to be visible when onChange event occur on another select object ?
- Previous by thread: [Javascript] How can i strict the length of TextAread form element ?
- Next by thread: [Javascript] How can i strict the length of TextAread form element ?
- Index(es):