簡體   English   中英

禁用\\在Kendo UI TreeList中啟用多個復選框

[英]Disable\Enable multiple checkboxes in Kendo UI TreeList

當單擊標題復選框時,我嘗試使用這些解決方案在Kendo UI TreeList中禁用\\ enable多個復選框:

1.prop('disabled',true)\\ prop('disabled',false)

2.attr('禁用','禁用')\\ removeAttr('禁用');

3。$(...)[0] .disabled = true \\ $(...)[0] .disabled = false

但是它們都有同樣的問題,只會影響TreeList中的最后一項!

我真的很困惑,不知道出了什么問題,是否有可能得到解決?

使用jQuery.each()迭代所有復選框。

對於檢查本身,道具是要走的路。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM