Change Text Color
The following example demonstrates how to change the color of a NumericTextBox value.
<input id="numeric" value="10" />
<script>
$(function() {
var widget = $("#numeric").kendoNumericTextBox().data("kendoNumericTextBox");
//find the wrapper of the widget
//get all input elements, as the widget creates two - for formatted value and real value
//set text color
widget.wrapper.find("input").css("color", "red");
});
</script>
See Also
- NumericTextBox JavaScript API Reference
- How to Persist Old Value
- How to Select All Text on Focus
- How to Use Custom Culture Script
For more runnable examples on the Kendo UI NumericTextBox, browse its How To documentation folder.