contains

UK[kən'teɪnz] US[kən'teɪnz]

vt. (the third person singular form of contain), include, accommodate

v.Contain; control (the third person singular of contain); restrain; contain

jquery contains selector syntax

Function::contains selector selects elements that contain the specified string. The string can be text contained directly within the element, or contained within a child element. Often used in conjunction with other elements/selectors to select elements in a specified group that contain specified text (as in the example above).

Syntax:$(":contains(text)")

##Parameters:text Required. Specifies the text to be found.

jquery contains selector example

    

Welcome to My Homepage

My name is Donald

I live in Duckburg

My best friend is Mickey

Who is your favourite:
  • Goofy
  • Mickey
  • Pluto
Run instance »

Click the "Run instance" button to view the online instance