123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|720|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Web Development -> javascript show/hid not right...

Tue, 08 Jul 2014, 13:38
spinal
Hi guys,

I'm trying to show/hide a div, but the code doesn't seem to be responding to the first click.

here is a jsfiddle of it, rather simple
https://jsfiddle.net/X7NC6

Anyone know why the first button click is going unnoticed?

-=-=-
Check out my excellent homepage!
Tue, 08 Jul 2014, 13:52
Jayenkai
I remember having this issue myself, but I can't for the life of me remember why it was happening.
Issue solvable by flipping your check statement.


-=-=-
''Load, Next List!''
Tue, 08 Jul 2014, 14:07
spinal
weirdly I got around the problem by no using a class and inlining the css to hide the div.

-=-=-
Check out my excellent homepage!