Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes How To Put Some Text In the Text Field? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How To Put Some Text In the Text Field?" Watch "How To Put Some Text In the Text Field?" New topic
Author

How To Put Some Text In the Text Field?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I use the <input ... > tag to generate a text field:

I would like to have some text:

http://

shown in the text field and users fill out the rest.

How do I show http:// in the text field?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
value
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

JaiPei, do you ever plan to start reading documentation?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How To Put Some Text In the Text Field?
 
Similar Threads
dynamically add attributes
form in multilingual
Using form arrays within the javascript of a .jsp
Submit Methods pulling same data
quotes and double quotes inside a form text element