Oh no! Some styles failed to load. 😵 Please try reloading this page
Menu â–¾ â–´

#2 Unhides <select> elements that should be hidden

v1.0_(example)
closed-fixed
nobody
5
2014-10-23
2003-03-14
Ying Zhang
No

If a <select> is normally hidden, ie:

<select name="foo" style="visibility:hidden">
<option>I should be hidden</option>
</select>

After using the calendar, it shows up. Should have
some way to find out what the original visibility was
and set it accordingly instead of making
visibility:visibile all the time.

Discussion

  • Ying Zhang

    Ying Zhang - 2003-03-14

    Example HTML file to show bug

     
  • Mark Bajema

    Mark Bajema - 2003-04-17

    Logged In: YES
    user_id=756934

    This also happens if the <select> element is contained within
    a div tag that is hidden. I'm not sure about how to do it cross-
    browser, but ie supports property extensions. Here is the
    code I'm using for now:

    if (this.hidden || (CX1 > EX2) || (CX2 < EX1) || (CY1 > EY2) ||
    (CY2 < EY1)) {
    if (!cc.visibilitySave)
    cc.visibilitySave = cc.style.visibility;

    cc.style.visibility = cc.visibilitySave;
    } else {
    cc.visibilitySave = cc.style.visibility;
    cc.style.visibility = "hidden";
    }

     
  • Mihai Bazon

    Mihai Bazon - 2003-06-22
    • summary: Unhides <select> elements that should be hidden --> Unhides &lt;select&gt; elements that should be hidden
    • status: open --> closed-fixed
     

Log in to post a comment.