Thread:Mathmagician/@comment-93604-20120509230753/@comment-4674838-20120512210341

In your code above, I wanted to change $('.article-comm-text', '#article-comments-ul') .before(createButton('toggleThread')) .before(createButton('toggleUser')) .before(createButton('toggleComment')); To something like this: $('.article-comm-text', '#article-comments-ul') .prepend(htmlString of createButton('toggleComment') + htmlString of createButton('toggleUser') + htmlString of createButton('toggleThread') ); (Or alternatively make createButton return an htmlString). Inserting HTML makes more sense to me, so seeing the code written that way is helpful to my understanding of what's going on.