html submit without submit button or JavaScript

后端 未结 3 1683
执笔经年
执笔经年 2020-12-20 09:39

Currently I have a simple form with a plus and minus on it and a value in the middle. I am trying to create a href link under the plus and under the minus to call self but t

3条回答
  •  暖寄归人
    2020-12-20 10:09

    You cannot submit an HTML form without using the button or input type=image/submit elements or JS.

    What you can do:

    1. Specify an image for input type=image
    2. Apply a bg image to input type=submit and killing the text via text-indent:-999em; for modern browsers and line-height for IE
    3. Split areas into separate forms if you really have to

提交回复
热议问题