Help with JQuery Toggle Div, Start in Hidden State Alright, this has been driving me insane for all too long. I'm trying to toggle a div, but start it in a hidden state. Suggestions on how to modify the following? 

// Drupal 7 js code
(function ($) {
Drupal.behaviors.togg = {
attach: function (context, settings) {
$('a#togg-link:not(.togg-processed)', context).addClass('togg-            
processed').each(function() {
$(this).click(function() {
$("div#togg").toggle(400);
return false;
});
});
}
};
})(jQuery);
Try this - In your loop, where you are iterating over each element to attach a click event handler, add this line:

$(this).hide();

That should hide each element. But don't add it to your click event handler. You can also initially hide the element using CSS if you want. Either method should work.

Please consider properly formatting code samples you post so that the community can read and understand it easier.

Good Luck!