enable or disable checkbox in html

前端 未结 6 1338
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 10:26

I want to enable or disable checkbox in table\'s row on basis of condition.

code -



        
6条回答
  •  遥遥无期
    2021-01-01 11:03

    In jsp you can do it like this:

    <%
    boolean checkboxDisabled = true; //do your logic here
    String checkboxState = checkboxDisabled ? "disabled" : "";
    %>
    >
    

提交回复
热议问题