The list that I am using here is just a standard SharePoint calendar, with standard calendar list columns, and I added a column (checkbox) for the alert.
Also, should update that the last line in the code
Also, should update that the last line in the code
$('span').filter(function (index) { return $(this).text() === alertTitle; }).css("color", "red");
The calendar event titles are sitting in <span> elements on the page. Using $('p').filter turns the entire paragraph red as long as it contains a match to alertTitle. Using span solved this problem allowing me to change only the title text as I wanted.