[Javascript] [Beginner] What is going on with my show/hide function?
David Dorward
david at dorward.me.uk
Mon Nov 13 11:38:16 CST 2006
On Mon, Nov 13, 2006 at 05:27:42PM +0000, Mark Kelly wrote:
> I have a written a simple function to toggle the visibility of a <div> that
> is, it seems to me, behaving oddly. On divs that are initially shown, the
> function works perfectly, toggling the content visibility. On divs that
> are initially hidden, the first click appears to do nothing but 2nd and
> subsequent clicks work fine.
The inital value of foo.style.display is the value of the display
property as specified in the style attribute for that element - not an
external stylesheet.
--
David Dorward http://dorward.me.uk
More information about the Javascript
mailing list