title: Jquery .text() with php foreach
body: <p>I want to show in a div dynamically some content. 
  This content, come from a function i have in php.</p>
  
  <p>Any ideas how can i do this?</p>
  
  <p>HTML:</p>
  
  <pre><code> &lt;div class="creativeSecondField"&gt;
        &lt;h1 class="secondFieldTitle"&gt;&lt;/h1&gt;
        &lt;div class="secondFieldContent"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JQUERY:</p>
  
  <pre><code>$(".creativeSecondField &gt; div.secondFieldContent").text(""+
      &lt;?php
      $info+this.id = $this-&gt;sqlCategories+this.id;
      foreach ( $info+this.id as $valuesinfo+this.id )
      {
      echo $valuesinfo+this.id['designation_en'];
      }
      ?&gt;
  +"");
  </code></pre>