Hi, I am trying to create a manual toggle to hide some div tags. But it doesn't seem to be doing anything. I added alerts to see if they even show up, but to no avail. Using the simple toggle(); function DOES work.
In fact I am actually trying to work out how to show or hide all divs. Because at the moment, if some divs are open and some divs are closed, using toggle just swaps them over (so divs showing are hidden, and hidden divs are now showing). Any ideas?
//button to show/hide rows
$('#hideRows').live('click', function() {
$('.dragbox').each(function(){
//$(this).find('.dragbox-content').toggle();
$(this).find('.dragbox-content').toggle(
function () {
//$(this).css({"display":"none"});
alert("hide");
},
function () {
//$(this).css({"display":"block"});
alert("show");
}
);
});
});