Change Input type="text" to Textarea

C

Camile

I'm working with a simple form that uses an Input type="text" for a line of
text limited to a predetermined number of characters. As follows:

<INPUT TYPE="TEXT" class="text" id="mess" name="messtext" maxlength="100"
size="60"
onKeyUp="Count('mess','cntdis','{CHAR} characters left.',160);"><br><span
id="cntdis" class="smalltext">160 characters left.</span></td>



I want to convert it to use Textarea so it can be a small square form. I
can't seem to make my Textarea syntax work in place of the Input
Type="text".



<TEXTAREA cols="40" rows="5" id="mess" name="messtext"></textarea>



The Textarea box displays with the OnKeyup and count(stuff).



Any suggestions?
 
J

Jukka K. Korpela

Camile said:
<TEXTAREA cols="40" rows="5" id="mess" name="messtext"></textarea>
OK.

The Textarea box displays with the OnKeyup and count(stuff).

Maybe your actual document contains something else than the snippet you
posted.
Any suggestions?

Post the URL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top