SyntaxFix
Write A Post
Hire A Developer
Questions
if( $("#field > div.field-item").text().indexOf('someText') >= 0)
Some browsers will include whitespace, others won't. >= is appropriate here. Otherwise equality is double equals ==
>=
==