Can you nest html forms?

前端 未结 20 3094
悲&欢浪女
悲&欢浪女 2020-11-21 04:56

Is it possible to nest html forms like this

so

相关标签:
20条回答
  • 2020-11-21 05:31

    You can also use formaction="" inside the button tag.

    <button type="submit" formaction="/rmDog" method='post' id="rmDog">-</button>
    

    This would be nested in the original form as a separate button.

    0 讨论(0)
  • 2020-11-21 05:36

    As Craig said, no.

    But, regarding your comment as to why:

    It might be easier to use 1 <form> with the inputs and the "Update" button, and use copy hidden inputs with the "Submit Order" button in a another <form>.

    0 讨论(0)
提交回复
热议问题