How do I append an class to a specific element which includes a certain text like this:
var title = $('.pass-item .title').text();
if(title.includes('7 days within 1')){
// Here I want to select the element which has the title text '7 days within 1'
// And append a class to it
}
I'll hope someone can help me out :)