I have a page that when a user clicks a title, the following div toggles display.
I want to somehow say if any other divs are display:block then set them to display non
This should do it: http://jsfiddle.net/gKgJ7/
$('.office-title').click(function(){ $('.office').slideUp(); $(this).next('div').slideToggle(); return false; });
This is not a valid closing:
sadasd //---------------------^^^^^^^^----should be