I'm trying to enable a .net LinkButton with jQuery but things have changed a little in .NET 4.0 and simply using attr("disabled", "disabled") or removeAttr("disabled") won't work.
Here is the button.
<asp:LinkButton ID="LinkButtonContinue" runat="server" Text="Continue" CssClass="button continue" Enabled="false"></asp:LinkButton>
This renders out like this:
<a class="aspNetDisabled button continue" id="ContentPlaceHolder1_LinkButtonContinue">Continue</a>
Note the newly added class of aspNetDisabled.
So I tried this:
jQuery(".continue").removeAttr("disabled").removeClass("aspNetDisabled");
and this:
jQuery(".continue").removeClass("aspNetDisabled");
Neither work because there is no disabled attribute to remove so I assume it uses JS to disable it?
How would I go about enabling a button with this class?
Any ideas?
Many thanks
Chris