New to Kendo UI for jQuery? Download free 30-day trial

Persist Old Value

The following example demonstrates how to persist the old value of the NumericTextBox.

<div id="example">
    <div class="demo-section k-header">
        <h4>Set value</h4>
        <input id="numerictextbox"/>
    <div class="box">
        <h4>Console log</h4>
        <div class="console"></div>
        $(document).ready(function() {
            var old = ""; //variable that persists the old value

            function onChange() {
                $(".console").append("<p>Change :: " + this.value() + ", old: " + old + "<p>");
                old = this.value(); //get value of the widget

                change: onChange
    <style scoped>
        .demo-section {
            width: 400px;

See Also

For more runnable examples on the Kendo UI NumericTextBox, browse its How To documentation folder.

In this article
Not finding the help you need? Improve this article