Skip to main content

Bug Tracker

Side navigation

#9859 closed bug (invalid)

Opened July 19, 2011 11:40AM UTC

Closed August 03, 2011 07:44AM UTC

Last modified August 03, 2011 02:28PM UTC

Event remove attribute disabled issue

Reported by: aphonso@gmail.com Owned by: aphonso@gmail.com
Priority: low Milestone: None
Component: attributes Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Description

Hello,

In the following code:

...

<script type="text/javascript">

$(document).ready(function()

{

$('#engines_combo').change(function()

{

alert($('#engine_values').attr('disabled'));

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

alert($('#engine_values').attr('disabled'));

});

});

</script>

...

<select id="engines_combo" class="element_select">

<option>Engine 1</option>

<option>Engine 2</option>

</select>

<fieldset id="engine_values" disabled="disabled" style="100%">

<legend>Engine Values</legend>

<div style="width: 900px;">Test removing disabled attribute</div>

</fieldset>

The childs elements of engine_values, should be enabled after changing the the combo engine.

In previous version the change works perfectly.

Thank you in advanced.

Best regards.

Attachments (0)
Change History (3)

Changed July 19, 2011 01:19PM UTC by timmywil comment:1

component: unfiledattributes
owner: → aphonso@gmail.com
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on http://jsfiddle.net that reproduces the issue experienced to help us assess your ticket.

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

Changed August 03, 2011 07:44AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed August 03, 2011 02:28PM UTC by dmethvin comment:3

$('#engine_values').removeAttr('disabled')

Use this instead: $('#engine_values').prop('disabled', false)