要素の最初を取り出すメモ

そのままです。メモ。

$('.foo').each(function(){
  var txt = $(this).html();
  $(this).html(
    txt.slice(0, 1)
  );
});