value

Gets or sets the value of the NumericTextBox.

Important: This method does not trigger the focusout event of the input. This could affect the floating label functionality. You can overcome this behavior by manually invoking the refresh method of the Floating Label: $("#numerictextbox").data("kendoNumericTextBox").floatingLabel.refresh();

Parameters

value Number | String

The value to set.

Returns

Number The value of the widget.

Example - get the value of the NumericTextBox

<input id="numerictextbox" />
<script>
$("#numerictextbox").kendoNumericTextBox();

var numerictextbox = $("#numerictextbox").data("kendoNumericTextBox");

var value = numerictextbox.value();

console.log(value);
</script>

Example - set the value of the NumericTextBox

<input id="numerictextbox" />
<script>
$("#numerictextbox").kendoNumericTextBox();

var numerictextbox = $("#numerictextbox").data("kendoNumericTextBox");

var value = numerictextbox.value();

numerictextbox.value(0.5);
</script>
In this article
Not finding the help you need? Improve this article