RadTextbox foreColor in client side

3 posts, 0 answers
  1. Rakesh
    Rakesh avatar
    13 posts
    Member since:
    Mar 2011

    Posted 04 Nov 2011 Link to this post

    How to set Radtextbox forecolor dynamically in javascript?

    Thanks in advance
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 05 Nov 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Nov 2011 Link to this post

    Hello Rakesh,

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


    Thanks,
    Shinu.
Back to Top