I have some dynamic content that gets published in a <span> of ID "giftopt". There can be any number of these <span> tags with ID = "giftopt". Is there a way with jQuery to check the text in ALL the <span></span> tags with ID = "giftopt" until it finds the word I am looking for or doesn’t at all?
I would like to write a conditional statement that:
My inital test seems that it will check until it comes to the first class with ID "giftopt", but it is highly likely that the first one won’t have the text I am looking forward and I need it to continue to see if there is any other classes with ID = "giftopt".