$(function () { var $index=$('.topic-index'); $index.empty(); $('.topic-title').each(function(){ var $topic=$('