Edit this page

value

Gets or sets the value of the MaskedTextBox.

Parameters

value String

The value to set.

Returns

String The value of the widget.

Example - get the value of the MaskedTextBox

<input id="maskedtextbox" />
<script>
$("#maskedtextbox").kendoMaskedTextBox({
    mask: "000000",
    value: "123456"
});

var maskedtextbox = $("#maskedtextbox").data("kendoMaskedTextBox");

var value = maskedtextbox.value();

console.log(value);
</script>

Example - set the value of the MaskedTextBox

<input id="maskedtextbox" />
<script>
$("#maskedtextbox").kendoMaskedTextBox({
    mask: "(000) 000-0000"
});

var maskedtextbox = $("#maskedtextbox").data("kendoMaskedTextBox");

var value = maskedtextbox.value();

maskedtextbox.value("555 123 1234");
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy