Hi Dan, ok thanks for that - so the “e.data.text” value in the above code snippet is the same as the “events.list” array? I’m assuming that I would need to loop through the array and do other things (show/hide, etc.) - would it be something along the lines of:
let searchQuery = document.getElementById("searchbox").value.toLowerCase(); //search field on the page
const events = months.events.find(e => e.data.text.includes(searchQuery));
for (let i = 0; i < events.length; i++) {
if (events.includes(searchQuery)) {
…do something…
} else {
…do something else…
}
…etc.
Thanks - Ed