value
Gets or sets the value of the NumericTextBox.
Important: This method does not trigger the
focusout
event of the input.
This can affect the floating label functionality.
To overcome this behavior, manually invoke 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();
/* The result can be observed in the DevTools(F12) console of the browser. */
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