Is it possible to use jQuery to count how many characters are in, for example, an , and if the amount is greater than XX characters, apply a class to
You can get the amount of characters in a string by doing this a.length, where a is a string.
$('a').each(function(){ if($(this).text().length > XX){ $(this).addClass('someClass'); } });