Home >
Net > Cycle div when a specified value judgment conditions decided to hide
Cycle div when a specified value judgment conditions decided to hide
<% @ 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:
$(" o ".) each (function () {
If ($(this). The text ()=="I") {
$(this).hide();
}
});
Now the data has a space if you want to remove the word plus trimRight ()
$(this). The text (). TrimRight ();
CodePudding user response:
Thank you thank you thank you
CodePudding user response:
Or not!!!!!!
CodePudding user response:
When the specified value in DIV hidden DIV
CodePudding user response:
$(' div. O: the contains (" specified value ") '). Hide ();
CodePudding user response:
The