Bug Tracker

Changes between Initial Version and Version 4 of Ticket #4233


Ignore:
Timestamp:
Dec 18, 2010, 11:02:21 PM (9 years ago)
Author:
jitter
Comment:

I can't reproduce what is described in the report with this test case. Both the div and textarea are getting shown/hidden with toggle for me. And the .is(":hidden") check works too.

Replying to iliakan:

If an empty, but potentially visible element will be considered visible by jQuery, then what to do with elements which height/width = 0 ? They are also potentially visible.

It seems reasonable to document the visibility feature so that people take it's behavior into account.

I think the behavior what is considered visible and what not is well documented here already http://api.jquery.com/hidden-selector/ or did I miss your point?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4233

    • Property Status changed from new to closed
    • Property Component changed from unfilled to fx
    • Property Priority changed from major to low
    • Property Milestone changed from 1.4 to
    • Property Resolution changed from to worksforme
  • Ticket #4233 – Description

    initial v4  
    55
    66Maybe an example is best.
    7 
     7{{{
    88function editDesc()
    99{
     
    2323<div #id="something"></div>
    2424<textarea id="somethingedit"></textarea>
    25 
     25}}}
    2626This is just a rough example, If you attach editDesc to  a button toggle the fields (assume textarea is being hidden by css by default) nothign changes to the div, and the textarea shows up. So you submit(with a button and submitDesc attached) It updates the div, but it sitll remains hidden. But if you click the button to edit again, both the div, and the textarea will show then, and if clicked again they will hide.
    2727