SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
$(document).ready(function(){ var yourArray = []; $("span.HOEnZb").find("div").each(function(){ if(($.trim($(this).text()).length>0)){ yourArray.push($(this).text()); } }); });
DEMO