enable

Enables or disables the widget.

Parameters

enable Boolean

If set to true, the widget will be enabled. If set to false, the widget will be disabled.

Example - enable the widget

Open In Dojo
<input id="otpinput" />
<script>
    $("#otpinput").kendoOTPInput({
        items: 3,
        enable: false
    });

    var otpInput = $("#otpinput").getKendoOTPInput();
    otpInput.enable(true);
</script>

Example - disable the widget

Open In Dojo
<input id="otpinput" />
<script>
    $("#otpinput").kendoOTPInput({
        items: 3
    });

    var otpInput = $("#otpinput").getKendoOTPInput();
    otpInput.enable(false);
</script>
In this article