Home  >  Article  >  Web Front-end  >  JQuery contains selector_jquery

JQuery contains selector_jquery

WBOY
WBOYOriginal
2016-05-16 18:28:351612browse
contains selector

contains selector refers to the object itself that includes the specified content, such as: $('td:contains("abcd")').addClass('highlight' ); is to find all cells containing content such as "abcd", set the style type of these cells and add the "highlight" class.

The following code needs to be refreshed after running in order to load jquery
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn