How to enable/disable an html button based on scenarios?

前端 未结 3 1694
终归单人心
终归单人心 2021-02-20 05:58

I have a button in my webpage with below code -

HTML:

3条回答
  •  醉梦人生
    2021-02-20 06:45

    If your circumstance allows you could just remove the content in the action attribute from the form tag. Therefor when a user clicks submit, no action is taken.

提交回复
热议问题