New to Kendo UI for jQuery? Start a free 30-day trial
Display Additional Error Notification
Updated on Dec 10, 2025
Environment
| Product Version | 2017.1 117 |
| Product | Progress® Kendo UI® NumericTextBox for jQuery |
Description
How can I provide additional notification that the NumericTextBox value must be a number to the user?
Solution
-
In the
document readyevent handler,appendthe desiredspanby using thek-numeric-wrapclass selector. -
Display the span when the NumericTextBox has the
k-invalidclass by using CSS.<style> span.myInvalid { position: relative; top: 30px; left: -130px; color: red; visibility: hidden; } .k-invalid>span.myInvalid { visibility: visible; } </style> <input id="textbox"> <script> $("#textbox").kendoNumericTextBox({ value: 10 }); $(document).ready(function() { $(".k-numeric-wrap").append("<span class='myInvalid'>Enter a number!</span>"); }); </script>