How to disable HTML Button Button Button

I used the HTML form, in this form I used the Button tag to submit.

The image shows some background, I set the background as transperent, but it still shows something.

I want to completely remove the background.

<button type="submit" style="border: 0; background: transparent">
<img src="/images/Btn.PNG" width="90" heght="50" alt="submit" />

+3
source share
1 answer

Why use a button?

You can:

html:

<form id="myFormID" ... >
     ...
    <img src="..." onclick="myFunction()" />
</form>

javascript:

function myFunction()
{
     //MakeYourTest
     $('#myFormID').submit(); //This line will commit your form
}

and you can do what you want in your javascript code.

0
source

All Articles