Am trying to change text of an asp:Button using jQuery Like this
$("#<%=delButton.ClientID%>").attr('text', 'InActivate');
.....
<asp:Button ID="delButton" runat="server" UseSubmitBehavior="false" Text="Activate "
CssClass="button" ToolTip="" OnClientClick="ondel();return false;"/>
I can see the text changing, Is the proper way to do?
Thanks
This is shorter ;)
$("#<%=delButton.ClientID%>").val('InActivate');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With