Home > Net >  Cycle div when a specified value judgment conditions decided to hide
Cycle div when a specified value judgment conditions decided to hide

Time:09-23

<% @ LANGUAGE="VBSCRIPT" CODEPAGE="65001" % & gt;

<meta HTTP - equiv="content-type" Content="text/HTML. Charset=utf-8 "/& gt;
No title documents & lt;/title> <br/><script SRC="https://code.jquery.com/jquery-1.9.1.js" & gt; </script> <br/><br/><style type="text/CSS" & gt; <br/># o {<br/>Background - color: # 0 f0; <br/>} <br/></style> <br/></head> <br/><br/><br/><body> <br/><Div id="o" & gt; <br/>1 <br/></div> <br/><Div id="o" & gt; <br/>I <br/></div> <br/><br/><script> <br/><br/><br/>$(" o "). The text (" I "). Hide (" o "); <br/><br/><br/><br/></script><p class="article - content rp"> CodePudding user response: </p><pre> <br/>$(" o ".) each (function () {<br/>If ($(this). The text ()=="I") {<br/>$(this).hide(); <br/>} <br/>}); <br/></pre> <br/>Now the data has a space if you want to remove the word plus trimRight () <br/>$(this). The text (). TrimRight ();<p class="article - content rp"> CodePudding user response: </p>Thank you thank you thank you<p class="article - content rp"> CodePudding user response: </p>Or not!!!!!!<p class="article - content rp"> CodePudding user response: </p>When the specified value in DIV hidden DIV<p class="article - content rp"> CodePudding user response: </p><pre> $(' div. O: the contains (" specified value ") '). Hide (); </pre><p class="article - content rp"> CodePudding user response: </p>The <fieldset> <legend> Hello World reference 5 floor, response: <legend> <blockquote> <pre> $(' div. O: the contains (" specified value ") '). Hide (); </pre> </blockquote> <fieldset> thank you very much?? </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/net/23580.html" target="_blank" style="color:#999">https//www.codepudding.com/net/23580.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/net/23579.html'>VS2010 Chart drawing, coordinate the deputy calibration Settings</a></div> <div class="detail-arr-right">Next:<a href='/net/23581.html'>How to use c # programming for external application version information</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=ASP.NET' target='_blank'>ASP.NET</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>