:contains
and .contains()
are two different animals
:contains
will check if a certain text ist contained in the inner HTML of the selector.$.contains(container, contained)
checks if a given element (the second parameter) is a child of the selector (the first parameter).100
is not a HTML node/jQuery element. (thx for the hint, Frédéric!)
See http://api.jquery.com/jQuery.contains/ and http://api.jquery.com/contains-selector/.