use jquery to enable textbox on button click -



use jquery to enable textbox on button click -

how enable textbox on link button click, i'm disabling textbox in html

here jquery code i'm trying use:

<script type="text/javascript" language="javascript"> $(document).ready(function () { $('#ledit').click(function () { $('#corporationname').removeattr('disabled'); }); }); </script> <asp:linkbutton id="ledit" runat="server" clientidmode="static" >edit</asp:linkbutton> <asp:label id="lblcorporationname" runat="server" text="corporation name" width="130px"></asp:label> <asp:textbox id="corporationname" runat="server" width="250px" clientidmode="static" enabled="false"></asp:textbox>

it looks you're doing right. if isn't working, try:

$('#corporationname').prop('disabled', false);

jquery

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -