This question is locked. New answers and comments are not allowed.
Hello,
In my view, I have:
<%= Html.Telerik().IntegerTextBox()
.Name("test")
.InputHtmlAttributes(new {style="width:30px;text-align:right"})
.Spinners(false).EmptyMessage("") %>
Then I'm trying to write a Javascript to change the text color. I've tried:
$("#test").data("tTextBox").element.style.color = "#336699";
but it's not working properly.
I wonder how I may change text color using Javascript?
Thank you!
In my view, I have:
<%= Html.Telerik().IntegerTextBox()
.Name("test")
.InputHtmlAttributes(new {style="width:30px;text-align:right"})
.Spinners(false).EmptyMessage("") %>
Then I'm trying to write a Javascript to change the text color. I've tried:
$("#test").data("tTextBox").element.style.color = "#336699";
but it's not working properly.
I wonder how I may change text color using Javascript?
Thank you!
