text area cursor problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
seaten
Forum Newbie
Posts: 22
Joined: Thu Mar 16, 2006 1:30 pm

text area cursor problem

Post by seaten »

Hi guys,

I am using a text area , but the problem is the cursor moves to the middle of the screen ? I know this is not a big issue but is there any way around it ?

Code: Select all

<label for="sel_product_description">Product Description:</label>
   
<TEXTAREA name="sel_product_description" wrap="physical" ROWS=6 COLS=40 id="sel_product_description" >
</TEXTAREA>
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

This has nothing to do with PHP - Moved to client side Image
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

a copy paste of your code and it works just fine for me
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

The problem is that you've got the opening <textarea> and closing </textarea> tags on different lines. There is some whitespace in between those tags, which gets inserted into the textarea. Put the opening and closing tags right beside each other and it should be fine.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply