I have an ecommerce store and have a payment gateway where I need to use input[type=submit].
It cannot be a button or input[type=image] but I want to put an icon in the value.
I need text and an icon something like submit >> except the '>' is a PNG.
I've been looking for a while and don't think this is possible. Are there any workarounds to get what I'm looking for?
I was thinking of creating an image and using CSS to add a background image but this won't be as responsive for different devices etc.
<p>containing an<img>or example) and listen to theclickevent on it. Submit your form then.input[type=image]behaves differently in what data it actually sends (image click coordinates), but between a normalinput[type=submit]and a submitbutton, there should be no significant differences. “I had <button onclick="this.form.submit"> but this will not work” - well then maybe it is not what you need to begin with; but we can’t know what that is, if you don’t show us how this form normally gets submitted to begin with. Show us the original, “working” input field, plus any JS logic that might be attached to it.input. As long as you specify name and value the same for a submitbutton, I don’t see why this should not work.