Hey guys, so I'm pretty new at jQuery and I'm trying to write a script that does:
- Gets list items (calendar)
- Gets and saves in a var the items' 'Title' and whether a checkbox is checked or not
- If checkbox.checked > parse a div on another page for a title match.
-
If the title is matched > CSS override to turn the text in that div red.
$(document).ready(function () {
$().SPServices({
operation: "GetListItems",
async: false,
listName: "calendar",
webURL: "http://myintranet/calendar.aspx",
CAMLViewFields: "<ViewFields><FieldRef Name='Checkbox' /><FieldRef Name='Title' /></ViewFields>",
})
// If checkbox is checked -- save the title of the calendar event in a variable
// Search the front page inside the div that displays the calendar events for a match to that title
$(".divThatContainsTheCalendarEvents('VariableThatHoldsTheTitleOfTheEvent')").css("color", "red");
});
Pretty much stuck here. I know what I want to do, but not really how to do it.