文檔半島外圍網上直營>>telerik中文文檔>>禁用Butoon
                禁用Butoon
立即下載Kendo UI for jQuery
從業務邏輯上講,應用程序通常需要禁用或啟用某個按鈕。
您可以通過Button的enable屬性或通過具有disabled="disabled" HTML屬性的元素來初始化Button,將其初始狀態設為禁用。還可以在JavaScript中隨時禁用或啟用按鈕,方法是使用帶有布爾參數的enable()方法。
下面的示例演示如何啟用和禁用按鈕。
<button type="button" id="editButton">Edit</button>
<script>
$(function(){
var editButton = $("#editButton").kendoButton({
enable: false
}).data("kendoButton");
// ...
// Enable the button.
editButton.enable(true);
});
</script>                
            
 QQ交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網安備
            50010702500608號
渝公網安備
            50010702500608號
             
            
 客服熱線
客服熱線