jqueryexample.com jQuery contains() example - jqueryexample.com

jQuery contains() example by jqueryexample

jQuery.contains()Check to see true if both parameters are DOM nodes and the second parameter is contained inside the first.

Syntax:
$(“div:contains(jquery)”)
selects all elements matched by

that contains the text “jquery″.

Example:

$(“div:contains(‘jquery’)”).css(“color”, “red”);

Did you like this? Share it:

Discussion

  1. bluseEffege says:

    My dad has been composing a study manual exactly on point with this blog, I have emailed the internet address over to him
    so he could pick up a couple pointers.
    Fantastic Job thank you!

Leave a Comment