User:Hofmic/Collapsible news.js

/* Script created by Superchuppa */ $('#news_section').children.each(function {   $(this).click(function { $(this).children.each(function {           var id = $(this).attr('id');            var disp = $(this).attr('class');            if (id == "news_body_shrinkable") {                $(this).toggle;                $(this).parent('class', (disp == "show" ? 'hide' : 'show'));            }        }); }); })