473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Cursor in the beginning of text field.

Hello,

I have created a form with a text-fields.

<textarea name="explanation" rows=6 cols=70>
</textarea>

What I don't like there is that if I click in the middle or end of one
of the fields cursor is set in position of 16 simbols from the
beginning of field. As if there is already 16 blank spaces in the
field. I tried to use value="" but it does not help. Do you know how
this problem can be solved?

Thank you.

Jul 23 '05 #1
3 7398
op*********@yahoo.com wrote:
<textarea name="explanation" rows=6 cols=70>
</textarea>

What I don't like there is that if I click in the middle or end of one
of the fields cursor is set in position of 16 simbols from the
beginning of field.
Then my bet is that the code you pasted above isn't the same as the code in
the webpage (its always a good idea to provide a URL), and that the real
version has 16 spaces between the opening and closing tags of the element.
As if there is already 16 blank spaces in the
field. I tried to use value="" but it does not help.


Which isn't much of a surprise - there is no value attribute for the
textarea element. http://validator.w3.org/
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2
me
<op*********@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hello,

I have created a form with a text-fields.

<textarea name="explanation" rows=6 cols=70>
</textarea>

What I don't like there is that if I click in the middle or end of one
of the fields cursor is set in position of 16 simbols from the
beginning of field. As if there is already 16 blank spaces in the
field. I tried to use value="" but it does not help. Do you know how
this problem can be solved?
Thank you.


Not on my machine in IE. Please post your code and give a URL.

Here's what I tried:
<form name="form1" >
<textarea name="explanation" rows="6" cols="70"></textarea>
</form>

Which browser are you using?
Good Luck,
me
Jul 23 '05 #3
Unfortunately I made some changes in my document and problem
disappears. I do not know which changes were significant... I use
Microsof Internet Explorer. Nex time, if this problem appears I will
send URL with source...

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: PeP | last post by:
Good morning, I have a form containing a text-area, I'd like to know if it exists a function that, when I activate an event, returns the position of the cursor in the text-area. For example, I...
2
by: duzuike | last post by:
Hi, I can set focus on a text field. But the cursor is always stay at the beginning , how to set the cursor at the end ? Thank you.
6
by: Sami | last post by:
Problem: Social Security number being used in a database. First problem is that it will not permit numbers beginning in zero to be entered - it sees it as a null or empty space from what I can...
1
by: Olav Tollefsen | last post by:
I use this code to set focus to a textbox when I load a page: private void SetFocus(System.Web.UI.Control ctrl) { string s = "<SCRIPT language=\"javascript\">document.getElementById('" +...
4
by: Billy | last post by:
Hi all, I'm building a text file from a database table using the ASP Write Method and would like to position the cursor in a specific column position before writing the fields. As I loop through...
16
Frinavale
by: Frinavale | last post by:
I am just wondering if it is possible to determine where the cursor is located within an <input type='text'> element using JavaScript? I'd like to write a snippet of code that will move to the...
4
by: Brandon McCombs | last post by:
Does anyone know of an easy way to set the position of the cursor in a TextBox? If I set text in the box that is longer than the length of the TextBox the position of the cursor is at the very end...
3
by: Klaus Brune | last post by:
Hello all, When one tabs through a form (specifically, in Firefox), all the text in a field is automatically selected. What I'm looking for is a way to put a function (in onFocus perhaps)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.