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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input Fields without Text box

Status
Not open for further replies.

Exie

Programmer
Sep 3, 2003
156
AU
Hi,

I'm sure there is a way to do this, but I just cant remember how. I have a page with a form in it, and I want one of the fields to contain a fixed value. eg. a record number

I want this displayed as normal text, but not in a normal INPUT TYPE=TEXT kinda box.

The only thought I have so far is to use a display the record number, and then use a INPUT TYPE=HIDDEN next to it, but this will get pretty ugly for me.

Can anyone suggest how I could render a field like a hidden field, but displayed on the page ?

ps. My page is actually a JSP which is rendering the record number.
 
<input type="text" style="border:none;" readonly="readonly" />

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top