Returns a new wrapped set composed of elements that contain the text string passed as the text parameter : contains « jQuery « JavaScript Tutorial






$('p').contains('Lorem ipsum')
30.27.contains
30.27.1.Returns a new wrapped set composed of elements that contain the text string passed as the text parameter