Skip to main content

Bug Tracker

Side navigation

#10351 closed bug (duplicate)

Opened September 27, 2011 08:22AM UTC

Closed September 27, 2011 01:04PM UTC

Last modified September 27, 2011 03:47PM UTC

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

Reported by: Jimmy Owned by: Jimmy
Priority: low Milestone: None
Component: attributes Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
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@qq.com

or

kaka13932535308@163.com

Attachments (0)
Change History (7)

Changed September 27, 2011 08:29AM UTC by 812219625@qq.com comment:1

Please contact me if anyone knows that

Changed September 27, 2011 08:30AM UTC by kaka13932535308@163.com comment:2

Please contact me if anyone knows that

Changed September 27, 2011 09:28AM UTC by addyosmani comment:3

component: unfiledattributes
owner: → Jimmy
priority: undecidedlow
status: newpending

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.

Changed September 27, 2011 01:04PM UTC by dmethvin comment:4

resolution: → duplicate
status: pendingclosed

Changed September 27, 2011 01:04PM UTC by dmethvin comment:5

Duplicate of #9719.

Changed September 27, 2011 02:33PM UTC by diopralinato comment:6

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

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

Changed September 27, 2011 03:47PM UTC by timmywil comment:7

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