Solved

why mouth click always starts in the middle of the textarea?

Posted on 2003-12-08
5
215 Views
Last Modified: 2008-02-20
Hi experts,

I have tried for whole day and have no clue why this is happening..?

I have two textarea on the same page with identical codes, but when I click on the first one, the mouth always starts from the beginning of the line, but when I click on the second textarea, it starts in the middle of the line. I tried to use Trim() to trim the white space around the entries in these two textareas. The first one always works fine, the second one always has extra space which does not get trimed.

I have no clue what is wrong with the second textarea....?Help and thanks.
0
Comment
Question by:cindyli
  • 3
  • 2
5 Comments
 
LVL 31

Expert Comment

by:GwynforWeb
ID: 9901809
Could you post some code.
0
 
LVL 16

Accepted Solution

by:
jaysolomon earned 60 total points
ID: 9901871
if your textarea looks like this in the one your having trouble with, its because of white space

ie
<textarea name="txtArea">
 </textarea>


But if you do it like this it should work correctly

<textarea name="txtArea"></textarea>

I seen the same problem not to long ago in another thread and that is what i found the problem was.
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 9901922
Glad we could help and thanks for the A

Happy Holidays (If you celebrate them)

jAy
0
 
LVL 31

Expert Comment

by:GwynforWeb
ID: 9901927
Jay I have never noticed that before, interesting. That sounds like the answer.
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 9904094
Yes i had not ever paid any attention to it before i ran across the other Q
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
reveal text field based on selected 10 24
Replace &lt; with < 14 55
Check if Object property exists? 3 19
Show/Hide ASP.NET controls with JQuery best practices 3 14
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now