fatso
answered Jun 10 '21 00:00
$("body").text()
will give you all text from the page
but it show all mixed up text so
one can use the p , b , h1 , h2 tags individuall to get text from that element
$("p").each(function(){
$(this).text()
})
$("b").each(function(){
$(this).text()
})
it still not good to list each element like this but you can use this code :
for(i=0;i<=d.length;i++){ $(d[i]).each( function(){ console.log($(this).text()); }) }