Check if any tags have a certain inner HTML

bwc6kill8

New Member
How would i write a jquery function that returns true if any spans within a div with id 'word' have an inner HTML of value v? For the selector, I have:\[code\]$('#word span').html()\[/code\]I'm confused as to the correct way to iterate through them, and return a boolean value because currently i have 5 span tags within that div.
 
Back
Top