Skip to content

Instantly share code, notes, and snippets.

@alispx
Created October 20, 2015 11:06
Show Gist options
  • Save alispx/bd8a20e0258fa113f86c to your computer and use it in GitHub Desktop.
Save alispx/bd8a20e0258fa113f86c to your computer and use it in GitHub Desktop.
jQuery(document).ready(function($) {
$('ul').find('li').each(function () {
if ($.trim($(this).text()) == "") {
$(this).remove();
}
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment