Home >
Net > When a specified value is in the DIV took the hidden DIV
When a specified value is in the DIV took the hidden DIV
<% @ LANGUAGE="VBSCRIPT" CODEPAGE="65001" % & gt;
<meta HTTP - equiv="content-type" Content="text/HTML. Charset=utf-8 "/& gt;
No title documents & lt;/title>
<script SRC="https://code.jquery.com/jquery-1.9.1.js" & gt; </script>
<style type="text/CSS" & gt;
# o {
Background - color: # 0 f0;
}
</style>
<body>
1
I
<script>
$(" o "). The text (" I "). Hide (" o ");
</script>
CodePudding user response:
Selector:
: the contains (text)
Usage examples:
$(" : the contains (' W3School ') ")
Explanation:
Contains all the elements in the specified string