I want the topic to have a certain bgcolor if the topictitle contains the string "New"
Thanks :3
Thanks :3
$(function() {
var str = 'new';
$('ul.topiclist.topics li.row').each(function() {
var title = $(this).find('a.topictitle').html();
if(title.toLowerCase().indexOf(str) >= 0) {
$(this).addClass('selected');
}
});
});