doniyor doniyor - 10 months ago 39
jQuery Question

Get text separetly

I have following html


When I try to get text it gives in one line

$('div').text() ---> '123456789'

Question: How to get text separetly like:

123 456 789


For getting text separately, you need to loop through all span and get its text:

$('div span').each(function(){