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

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

I have a button in my webpage with below code -

HTML:

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-20 06:39

    You can do it either by modifying the attribute or by adding/removing a class.

    Modifying attribute

    You will want to switch between

提交回复
热议问题