$(contentPara0).each(function() { var countPara0 = $(this).text().length; if(countPara0 > 200){ //do this }; });