|
-
Mar 9th, 2001, 12:56 AM
#1
Thread Starter
Hyperactive Member
Is is possible to have a multiline textbox in HTML??
I need to allow users to enter upto 250 characters. I dont want to use the normal textbox....and using a textarea won't allow me to restrict the no. of characters entered.
Thanx.
-
Mar 14th, 2001, 08:27 AM
#2
Frenzied Member
is this any good?
Code:
<HTML>
<HEAD>
<script language="JavaScript">
function x()
{
var str = document.frm1.TEXTAREA1.value
if(str.length > 250)
{
document.frm1.TEXTAREA1.value=str.substring(0,250)
}
}
</script>
</HEAD>
<BODY>
<form name=frm1>
<TEXTAREA name=TEXTAREA1 onKeyUp="x()">
</TEXTAREA>
</form>
</BODY>
</HTML>
-
Mar 14th, 2001, 11:21 PM
#3
Thread Starter
Hyperactive Member
it is Mark , Thanx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|