Bug Tracker

Modify

Ticket #10351 (closed bug: duplicate)

Opened 20 months ago

Last modified 20 months ago

$('#xxoo').removeAttr('disabled');

Reported by: Jimmy Owned by: Jimmy
Priority: low Milestone: None
Component: attributes Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

Description

Today I meet a problem in jQuery Library 1.6.2. The function removeAttr('disabled') does not work. Follow me and I will show how I find it.

  1. I make a button in the HTML page,and make is attribute disabled='disabled'
  2. I use the function: $('#xxoo').removeAttr('disabled')
  3. Then I find that, this button can trigger its function, but the appearance of the button looks like a button with the disabled='disable'
  4. Last I use the JavaScript phrase. I find the button normal.

I'm so sorry my English is poor! If I can not express my idea please contact me to

812219625@…

or

kaka13932535308@…

Change History

comment:1 Changed 20 months ago by 812219625@…

Please contact me if anyone knows that

comment:2 Changed 20 months ago by kaka13932535308@…

Please contact me if anyone knows that

comment:3 Changed 20 months ago by addyosmani

  • Owner set to Jimmy
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to attributes

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate:  http://jsfiddle.net/FrKyN/

Open the link and click to "Fork" (in the top menu) to get started.

comment:4 Changed 20 months ago by dmethvin

  • Status changed from pending to closed
  • Resolution set to duplicate

comment:5 Changed 20 months ago by dmethvin

Duplicate of #9719.

comment:6 Changed 20 months ago by diopralinato

if you are using jquery 1.6+, you must use this:

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

comment:7 Changed 20 months ago by timmywil

1.6.1+ allows the use of attr again, but prop is recommended.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.