Skip to content

Instantly share code, notes, and snippets.

@tonysaffo
Created February 8, 2017 14:50
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 tonysaffo/53b9f28f0a11eea2df609dae333721bb to your computer and use it in GitHub Desktop.
Save tonysaffo/53b9f28f0a11eea2df609dae333721bb to your computer and use it in GitHub Desktop.
<script>
$(document).ready(function(){
var imgs = document.getElementsByClassName('js1');
for (var i = imgs.length; i > 0; i--) {
console.log("string",imgs[i]);
if ($('.js1').eq(i).attr('src') == "") {
$('.js li').eq(i).hide();
}
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment