Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

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
|