完全に一致するテキストで複数のクラスをターゲットにする必要があります。コードの半分は機能しているように見えますが(チェックボックスがオフの場合、テキストの背景は紫色になります)、チェックボックスをオンにしてテキストをターゲットにすると、何も起こらないようです...
if ($("input:checkbox:checked#checkbox-id").length > 0) {
$('#main-content-panel .entry').filter(function(index) {
return $(this).text() == "Text"; }).css
('backgroundColor', 'orange');
}
if ($("input:checkbox:not(:checked)#checkbox-id").length > 0) {
$('#main-content-panel .entry').filter(function(index) {
return $(this).text() == "Text"; }).css
('backgroundColor', 'purple');
}
jsFiddle: http: //jsfiddle.net/KKfEF/