Skip to main content

Bug Tracker

Side navigation

#1085 closed bug (worksforme)

Opened March 29, 2007 05:20PM UTC

Closed April 07, 2007 05:43PM UTC

Cannot undisable disabled hidden fields

Reported by: aichinge Owned by:
Priority: major Milestone: 1.1.3
Component: core Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:

Hi, I use 1.1.2 version and I try this ".EnFormPassiveinput[@type='hidden']" or ".EnFormPassive:hidden" selector to enable and disable hidden fields. Ex.:


$(".EnFormPassiveinput[@type='hidden']").attr("disabled", "true");


$(".EnFormPassiveinput[@type='hidden']").attr("disabled", "false");



HTML for this is that there are about 5 DIVs with EnFormPassive class, they contain some fieldsets, or fieldsets in fieldset and in this fieldsets are hidden fields.

It disable it correctly, but jQuery doesn't find any element to enable! They are accessible only throught their IDs, but it is not so dynamic.

Attachments (0)
Change History (2)

Changed April 05, 2007 04:45PM UTC by malsup comment:1

I could not duplicate this problem in either FF or IE. I used the following script and the hidden input was always found:

<script type="text/javascript" src="../rel/jquery-1.1.2.js"></script>
<script type="text/javascript">
$(function() {
    $('#count').click(function() {
        var jq = $(".EnFormPassive//input[@type='hidden']");
    $('#enable').click(function() {
        var jq = $(".EnFormPassive//input[@type='hidden']");
    $('#disable').click(function() {
        var jq = $(".EnFormPassive//input[@type='hidden']");
        jq.attr("disabled", "true");
<form class="EnFormPassive">
        <input type="hidden" value="mike" />
        <button id="count">Count Hidden Inputs</button>
        <button id="disable">Disable Hidden Input</button>
        <button id="enable">Enable Hidden Input</button>

Changed April 07, 2007 05:43PM UTC by john comment:2

need: PatchReview
resolution: → worksforme
status: newclosed

Seems to work for Mike, closing.