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

Add a Title Attribute in the NumericTextBox

Environment

Product Progress Kendo UI NumericTextBox for jQuery
Operating System Windows 10 64bit
Visual Studio version Visual Studio 2017
Preferred Language JavaScript

Description

How can I add a title attribute to the input element of the Kendo UI for jQuery NumericTextBox?

Solution

The following example demonstrates how to achieve the desired scenario.

<input id="numerictextbox" value="10" title="this is the numerictextbox title"/>
<script>
  $(function() {
    var widget = $("#numerictextbox").kendoNumericTextBox().data("kendoNumericTextBox");

    widget.wrapper
          .find(".k-formatted-value")
          .attr("title", widget.element.attr("title"));
  });
</script>

See Also

In this article