Skip to content

Instantly share code, notes, and snippets.

@ReneeVandervelde
Created February 19, 2012 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReneeVandervelde/1862540 to your computer and use it in GitHub Desktop.
Save ReneeVandervelde/1862540 to your computer and use it in GitHub Desktop.
links
links = document.getElementById("box");
for(x=0;x<links.length;++x){
if(links[x].innerHTML == "blah1"){
links[x].style.display="none";
}
//or
if(links[x].getAttribute("href")=="blah1.html"){
links[x].style.display="none";
}
}
@ReneeVandervelde
Copy link
Author

I lowered the scope of link to the div #box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment