$('.status-holder').each(function () { switch ($(this).html().trim()) { case "Sent": alert("fodo"); $(this).addClass('status-sent'); case "Received": $(this).addClass('status-received'); case "In Progress": $(this).addClass('status-inProgress'); case "Completed": $(this).addClass('status-completed'); }; });
break;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)