SHARE
TWEET

problem...

a guest Jan 12th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   for(i=0;i<20;i++) {
  2.     var text = (" "+ $('#PublicNAME-'+i).text() + $('#PublicPRICE-'+i).text() + $('#PublicINFO-'+i).text()).trim();
  3.     console.log('text: '+text);
  4.     if(text.length==0) {
  5.       $('#PublicItemBox-'+i).css("visibility", "hidden");
  6.       $('#PublicItemBox-'+i).css("height", "0px !important");
  7.       console.log('PublicItemBox-'+i+" wird versteckt");
  8.     }
  9.   }
  10.  
  11.  
  12.       <div class="col-sm-6 col-xs-12" id="PublicItemBox-3">
  13.         <div class="row Beschriftung MSideAuto LightBorderBottom PBottom10 MBottom10 LightMaxWidthHalf">
  14.           <div class="col-sm-10 col-xs-10 Grau CrimsonText Caps" id="PublicNAME-20">item4</div><div class="col-sm-2 col-xs-2 Grau CrimsonText" id="PublicPRICE-20">1,50&euro;</div>
  15.           <div class="col-sm-12 col-xs-12 Grau CrimsonText" id="PublicINFO-20">Mushroom / Veggie / White Sources</div>
  16.           </div>
  17.       </div>
RAW Paste Data
Top