<asp:Button ID="btnOK" runat="server" Text="Send" Width="80px" CssClass="ButtonClass" style="color:Red;"/>
I’ve tried adding a class and the style tag does not seem to effect anything. Am I doing something wrong?
Also tried:
$("input[id$=btnOK]").button();
$('input[id$=btnOK]').removeClass('defaultClass ui-state-default').addClass('ButtonClass');
If you are using asp.net 4.0 you can set the
ClientIdMode="Static"on the button and then reference it as:$('#btnOK')More Info on the ClientIDMode. http://weblogs.asp.net/asptest/archive/2009/01/06/asp-net-4-0-clientid-overview.aspx
Otherwise you can reference it this way:
$('#<%=btnOK.ClientID%>')