jQuery(document).ready(function($){ $('.row-label').filter(function() { return $.trim($(this).text()) === '' }).hide() });