Opened 15 years ago
Closed 14 years ago
#2575 closed bug (duplicate)
Hide does not "hide" non-visible elements
Reported by: | ereze | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.2.4 |
Component: | core | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
if I try to do $("#B").hide() and the containing div "#A" is already hidden the action does not change the #B div to display:hidden. Later when I re-show() div #A, #B is displayed as well. Of course, to workaround this, I had to remember to perform on #B before hiding #A.
<div id="A">
<div id="B"> </div>
</div>
Change History (4)
comment:1 Changed 15 years ago by
comment:3 Changed 15 years ago by
This seems to be related to the thing that $(':hidden') doesn't get element whose parents are hidden.
comment:4 Changed 14 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This is a duplicate of #1349.
Note: See
TracTickets for help on using
tickets.
Replying to ereze:
I just tried this code on the DOM you provided and everything was hidden and shown as expected. I added the letters "A" and "B" into the 2 divs so I could see exactly what was going on and stuck the alerts in for illustration of the progress. It appears as though it is working as expected and this is a non-issue with jQuery 1.2.3.
$(document).ready(function() {
});