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.
Printable View
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.
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>
it is Mark :), Thanx