[CLOSED] JQuery to enable control

  1. #1

    [CLOSED] JQuery to enable control

    Hi Guys,

    I am trying to use JQuery to enable or disable a LinkButton control on a form. But it is not working, you guys have any idea what I might be doing incorrectly below. it run the command successfully but the link state is not changing.



     if (value) {
                jQuery('#ForgotPassword').attr('disabled', 'true');
            }
            else {
                jQuery('#ForgotPassword').removeAttr('disabled');
            }
    Last edited by Daniil; Mar 15, 2011 at 7:25 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Well, to set a 'disable' attribute is not enough to disable a LinkButton.

    You could investigate .disable() method to see what actions are applied to disable a LinkButton.
    <ext:Button runat="server" Text="Disable">
        <Listeners>
            <Click Handler="debugger; LinkButton1.disable();" />
        </Listeners>
    </ext:Button>

    But you could just .disable() method and, also, .enable(), .setDisabled(true/false).

Similar Threads

  1. [CLOSED] ext and jquery
    By sisa in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 05, 2011, 2:18 PM
  2. [CLOSED] Disable/Enable edit control on gridpanel
    By bakardi in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 21, 2011, 3:59 PM
  3. [CLOSED] jQuery and Ext.Net
    By alliedwallet.com in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 14, 2011, 3:48 PM
  4. Replies: 6
    Last Post: Sep 20, 2010, 2:48 PM
  5. Enable a control via javascript
    By sfvaleriano in forum 1.x Help
    Replies: 3
    Last Post: Sep 08, 2009, 9:28 AM

Posting Permissions