jQuery contains() example

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”);

Comments

Popular posts from this blog

Best jQuery Chart Libraries

css :Custom Horizontal Rules