This is a migrated thread and some comments may be shown as answers.

RadTextbox foreColor in client side

2 Answers 45 Views
Input
This is a migrated thread and some comments may be shown as answers.
Rakesh
Top achievements
Rank 1
Rakesh asked on 04 Nov 2011, 06:22 PM
How to set Radtextbox forecolor dynamically in javascript?

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 05 Nov 2011, 07:56 AM
Hello,

You can achieve this by jqery.
  <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
   <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
   <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
 
<script type="text/javascript">
 $(document).ready(function () {
               $(".riTextBox").css("color", "Pink");
           });
 
       </script>


Thanks,
Jayesh Goyani
0
Shinu
Top achievements
Rank 1
answered on 07 Nov 2011, 05:08 AM
Hello Rakesh,

You can try the following javascript.
JS:
function OnLoad(sender)
{
 sender.get_styles().EnabledStyle[0] += "color: red;";
  sender.updateCssClass();
}


Thanks,
Shinu.
Tags
Input
Asked by
Rakesh
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Shinu
Top achievements
Rank 1
Share this question
or