Forgive my bluntness. But I can not do so that when you click on one element, the others are folded. I do not understand where to write and how to write this event.
<script type="text/javascript"> $(document).ready(function(){ $('.content dd').hide(); $('.content dt').click(function(){ $(this).next().toggle(100); return false; }); $('content dd').next().hide(); }); </script> <div class="content"> <dl> Аккордион <dt>Новость первая</dt> <dd>Текст первой новости</dd> <dt>Новость вторая</dt> <dd>Текст второй новости</dd> <dt>Новость третья</dt> <dd>Текст третьей новости</dd> </dl> </div>