Modify ↓
Ticket #10109 (closed bug: duplicate)
IE7 removeAttr not functioning properly
| Reported by: | laurence.hoess@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Version: jQuery 1.6.2 (1.6.1 worked fine; jQuery Edge shows the same problem)
Browser: IE7 (Testing with IE8 in IE7 Mode) Works in FF 5.0.1 and IE8.
OS: Windows XP
Test Steps:
- Using the test case at http://jsfiddle.net/4erKM/14/
- Open IE8, hit F12, select Browser Mode: IE7.
- Select DACUM, a Duty, Task, and Step menus should appear with Task and Step menus disabled. Selecting a Duty should enable the Task menu, selecting a Task should enable the Step menu. However in IE7 those menus remain disabled.
This appears to be related to #9576.
Tried the .prop('disabled', false) workaround but that didn't resolve the problem.
Sample: http://jsfiddle.net/4erKM/14/
Change History
comment:1 Changed 21 months ago by dmethvin
- Status changed from new to closed
- Resolution set to invalid
comment:2 Changed 20 months ago by rwaldron
- Status changed from closed to reopened
- Resolution invalid deleted
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

That is a lot of code, but basically do not do this in script:
$("#duty").attr("disabled","disabled"); $("#task").removeAttr("disabled");Instead do this:
$("#duty").prop("disabled", true); $("#task").prop("disabled", false);