How to remove 'submit query' from a form submit?

Viewed 49555

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.

15 Answers

If you are using something like a jQueryUI dialog button then you do not want to have the input button show up in the form, but rather just have it in the footer of the dialog. I accomplished this by doing the following:

Because IE will automatically put in an <input type="submit" /> I put this in the form instead: <input type="submit" style="display:none" />

Then later in the dialog JavaScript I put:

$("#register-dialog").dialog({
   title: "Register",
   modal: true,
   width: 700,
   buttons: {
            Register: function () {
                $('#registrationForm').submit();
            },
            Close: function () {
                $(this).dialog("close");
            }
        }
 });

Just remove the text with jQuery?

jQuery:

$('#btnSubmit').val('');
Related