New to Kendo UI for jQueryStart a free 30-day trial

Prompt

methods

Opens a Kendo UI Prompt popup. Similar to the native window.prompt() method.

Parameters:textString

The text to be shown in the Prompt popup.

defaultValueString

The default value that will be shown in the popup's input.

Returns:Promise

a jQuery promise instance, which can be used for callbacks, or passed to jQuery.when. The jQuery Deferred object resolves to:

<script>
    kendo.prompt("Prompt text", "Default input text");
</script>
<script>
    kendo.prompt("Prompt text", "Default input text")
        .done(function(data){
/* The result can be observed in the DevTools(F12) console of the browser. */
            console.log("User accepted with text: " + data);
        })
        .fail(function(data){
/* The result can be observed in the DevTools(F12) console of the browser. */
            console.log("User rejected with text: " + data);
        });
</script>
Not finding the help you need?
Contact Support