2014-01-09 25 views

回答

8

你可以很簡單地用

$('#selectId').prop('disabled'); 

在禁用,禁用KendoUI太選擇,所以:

var state = $('#selectId').prop('disabled'); 
+1

,如果有人需要這個對於硒測試它可作爲nuget包使用:https://github.com/leblancmeneses/RobustHaven.IntegrationTests/commit/2557440fb98d8e267f0b2d94365dd37cb7ad376a –

+0

沒有任何反應 – FrostyPinky

1

只是這樣做:

$("#your_dropdown_id").attr("aria-disabled"); 

如果禁用此返回否則真就返回false。

+0

它沒有工作,返回值是不確定 – MustafaP

相關問題