mercredi 25 avril 2018

JS IF statement to apply CSS to hide text if found on page

Looking to hide specific text when/if it happens to get populated on a page Unsure of how to do this

var str = "Lease from 0%* or 0%*";
  if( str.search("e") > 0) { 
  //apply css to hide the above string if found on page
}

Aucun commentaire:

Enregistrer un commentaire