tags:

views:

624

answers:

5

I have an html form and the submit button says "submit query". How can I remove this text? I am using a background image for the submit button and this text is messing up the button :( Any help would be greatly appreciated.

A: 

use attribute value="submit"

Xinus
i want to not display the submit
HollerTrain
+5  A: 

If you do not give your submit button a value

<input type="submit" />

instead of something like

<input type="submit" value="Submit" />

it will display 'submit query' by default. Try giving it a space &nbsp; as the value.

Brandon
A: 

You just have to give it a value:

<input type='submit' name='btnTest'>
<input type='submit' name='btnTest2' value='Push Me'>

In the example above, btnTest renders as "Submit Query" while btnTest2 renders as "Push Me". Hope this helps.

UPDATE: You can do this to not display any text.

<input type='submit' name='btnTest2' value='' style="width:100px;">
J.Hendrix
i do not want to display any value.
HollerTrain
+3  A: 

use:

<input type='submit' name='btnTest2' value=''>

Leave the value blank and there will be no words on the button. Since you're using a background image a for the button, give the button a height and width, otherwise it will display as a small gray blip (because there are no words on the button).

tahdhaze09
+1  A: 

Just put a space between the value quotes. Simple fix.

Read the question before you reply. You may actually help someone.

Noosa