title: traverse through every word in paragraph jquery
body: <p>I have a paragraph</p>
  
  <pre><code> &lt;div id="unique"&gt; Lorem ipsum dolor&lt;/p&gt;
  </code></pre>
  
  <p>I want to get each word inside this paragraph. I already tried doing </p>
  
  <pre><code> var $texts = $("#unique");
   $texts.each(function(i, text){
   var str = $(text).text();
      console.log(text);
   });
  </code></pre>
  
  <p>But this only gives me the whole text "Lorem ipsum dolor" and not "Lorem","ipsum" and "dolor". Can anyone help me regarding this?</p>