This jQuery doesnt appear to be working as I would expect it to:
$('#topic li a').filter(function () {
if ($(this).text() > 410) {
$(this).parent('li').addClass('wrap');
}
});
The jQuery should work out if the text within an <a href=>....</a> is over 410 chars, if it is it should add the class .wrap to the parent li.
Anyone have any ideas what im doing wrong?