要素の最初を取り出すメモ 2017.07.12 そのままです。メモ。 $('.foo').each(function(){ var txt = $(this).html(); $(this).html( txt.slice(0, 1) ); });