i wan to retrive all the value of this code using class name ..is it possible in jquery . i want to retrive only the text within a div or number of div may be change the nex
Try this:
$(document).ready(function(){ var yourArray = []; $("span.HOEnZb").find("div").each(function(){ if(($.trim($(this).text()).length>0)){ yourArray.push($(this).text()); } }); });
DEMO