[jQuery] Hide/show text.
[jQuery] Hide/show text.
<html>
<body>
Hi folks,
I'm lost in ignorance here - I'm hoping someone can shine a torch for
me. I have the following code:
1. When the page loads, the following code takes over and correctly hides
content I want hidden.
<tt>$(document).ready(function() {
$('#jq').find('div').hide();
});
</tt>2. The following onclick function does not make the hidden text
appear - and I don't understand why it doesn't.
<tt>function showStuff() {
var z =
$('#jq').find('div');
if (z.is(':visible'))
{
z.slideUp('slow');
} else {
z.slideDown('slow');
}
}
</tt>I don't understand where I am going wrong and I'd appreciate some
help/guidance.
Thanks,
Bruce</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/