Wednesday, 21 January 2015

how to apply color of LinkButton using javascript


var  Demo1Link = document.getElementById("ctl00_ContentPlaceHolder_lbnDemo1");
                (or) 
var   Demo1Link  = document.getElementById("lbnDemo1.ClientID");
     if (  Demo1Link  != null)
         {
           Demo1Link .style.color="black";// any color we can apply.
         }

No comments:

Post a Comment