2

I'm using firebug and in a page there is one text field:

 <INPUT TYPE="PASSWORD" NAME="CorporateSignonPassword" size="20" maxlength="28" >

and this field is disabled. Actually I've forgotten password in my banking login account and it is forcing me to type in my long passwords using visual keybord buttons.

Why isn't this working?:

$("input").attr("editable",true); 

or

  $("input").attr("disabled",false); 

I've jquerified the page.

2
  • 1
    what are you trying to do again? Commented May 28, 2011 at 8:51
  • I want to type in my passwords in the password field rather than clicking visual randomized keyboard buttons. Commented May 28, 2011 at 8:52

3 Answers 3

7

If you're using >= jQuery 1.6 then you should be using the prop() method rather than attr() in this particular instance:

$("input").prop("disabled", true);

or

$("input").prop("disabled", false);
Sign up to request clarification or add additional context in comments.

Comments

1

How about removing the "readonly" attribute? I think input tag has an attribute called "readonly".

Comments

0

Try this:

$("input[type='password']").attr('disabled', false);

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.