Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text box properties

Status
Not open for further replies.

breeb

Programmer
Jul 8, 2003
25
ZA
I am displaying information from a database and allowing the user to edit it and then submit the changes. The problem is with the text box as when the page is displayed and the user clicks on the text box, the cursor is placed at the BEGINNING of the text (as opposed to at the end) and the user is unable to select all the text in order to delete it.

This is the HTML tag:
<input type=&quot;text&quot; name=&quot;T1&quot; size=&quot;45&quot; value = &quot;<%=rs1 (&quot;Production Area&quot;)%>&quot;>

I have another page in a separate that performs the exact same code, and performs as expected, but I am using a Frontpage style sheet there. I would prefer to not use a style sheet with this page. Are there any text box properties that need to be added that would correct this?

Any help would be greatly appreciated!!!

Bree
 
<input type=&quot;text&quot; name=&quot;T1&quot; size=&quot;45&quot; value = &quot;<%=rs1 (&quot;Production Area&quot;)%>&quot; onFocus=&quot;select(this)&quot;>


Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
Thank you! Knew that it had to be something REALLY simple!!!

Bree
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top