How do I submit a form with a
  • instead of a submit button?
  • 前端 未结 6 792
    抹茶落季
    抹茶落季 2021-01-18 10:42

    I want to be able to submit a form but instead of having to click on a submit button, I\'d like to be able to click on an

  • element and have it submit.
  • 6条回答
    •  北海茫月
      2021-01-18 11:12

      You could put an onclick event on the LI that calls the forms submit event:

      • Click me

      Your form would be non-standard and not very accessible though.

    提交回复
    热议问题