OZONE Asylum
Forums
DHTML/Javascript
stuck...again... working with jQuery
This page's ID:
31072
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Ok, I went with a sightly different approach: instead of an if/else, I use the if to check for "checked" so I can still tweak the state of the checkboxes, but I use slideToggle() to show and hide the div's - [code] $("#cal-head input:not(#cal-all)").click(function(){ var classMatch = $(this).attr("id"); if($(this).attr("checked" == false)){ //$("div." + classMatch).hide(); $("#cal-all").attr("checked", ""); $("#cal-all").attr("disabled", ""); $("label[for=cal-all]").removeClass("disabled"); } $("div." + classMatch).slideToggle("fast"); }); [/code] I would still really like to know why it wasn't working, if anyone can tell, as I am baffled by the behavior.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »