title: Getting multiple div content
body: <p>I have html structure like this:</p>
  
  <pre><code> &lt;div class='inside'&gt;
      &lt;div&gt;429185&lt;/div&gt;
      &lt;div&gt;492128&lt;/div&gt;               
   &lt;/div&gt;
  </code></pre>
  
  <p>Sometimes there is only one div inside. I need to get both numbers, and to send them via ajax to php script. Here is how ajax look like:</p>
  
  <pre><code>var value_of_divs = jQuery(".inside div").text();
  
  jQuery.ajax({
      type: 'POST',
      data: {
          action: 'someaction',
          code: value_of_divs
      },
      url: '/somescript.php',
      success: function(msg) {
      jQuery('#somediv').html(msg);
      }
  });
  </code></pre>
  
  <p>But as you can see, this works only when one div is in "inside" div. When two divs are there (like in example), i get nothing from php script. How to pickup content of both divs (as array?) and to send them to ajax?</p>