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!

Simple Form Element Question (submit button)

Status
Not open for further replies.

RhythmAddict112

Programmer
Jun 17, 2004
625
US
Hey all. Super quick question. Is there a way for me to have my submit button just be a text button but still an element of my form of course? IE, I want this:

Code:
<input type="submit" Value="next 15">

Not be an ugly button...I just want it to say "next" in plain text...
 
you would have to use javascript -- and easier way is to make it an image

<input type="image" src="file.jpg" Value="next 15">
 
Unleash the power of CSS. Button doesn't have to be ugly, actually, it doesn't even have to look like a button:
Code:
<input type="submit" name="next" value="Next 15" style="border: none; text-decoration: underline; background: white; cursor: pointer; color: blue;" />
 
...or for the "plain text" option, just make it a link:

Code:
[<a href='javascript:void(0);' onclick='document.formName.submit()'>Next 15...</a>]

I put the square brackets around the 'Next 15...' to isolate the text. Naturally, do whatever you want.

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top