how to disable buttons based on a condition in jsp?

前端 未结 4 840
一生所求
一生所求 2020-12-06 07:52

how can I disable a button by checking a condition in my jsp? If true,then the button is enabled,if false,then the button is disabled. The condition would be checking the va

4条回答
  •  鱼传尺愫
    2020-12-06 08:24

    If you use Spring's form tag library, you could also write:

    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    
    
     ...
     Name of button
    
    

提交回复
热议问题