jquery - Coloring an asp:button - cant seem to get it to work -
<asp:button id="btnok" runat="server" text="send" width="80px" cssclass="buttonclass" style="color:red;"/> i've tried adding class , style tag not seem effect anything. doing wrong?
also tried:
$("input[id$=btnok]").button(); $('input[id$=btnok]').removeclass('defaultclass ui-state-default').addclass('buttonclass');
if using asp.net 4.0 can set clientidmode="static" on button , reference as:
$('#btnok')
more info on clientidmode. http://weblogs.asp.net/asptest/archive/2009/01/06/asp-net-4-0-clientid-overview.aspx
otherwise can reference way:
$('#<%=btnok.clientid%>')
Comments
Post a Comment