Get just one of a divs IDS with jQuery
<p>I have a div with more than one ID and I need to get each ID separately and send both variables off to a PHP file. I feel this would be the simpler option if achievable but the other option is to split the two IDS on the server side with PHP once the ID has been sent to it by jQueery. One ID is the timestamp the other the ID in the database.</p>

<p>HTML div example:</p>

<pre><code>&lt;div style="margin-bottom:10px;" id="1000003 2012-09-04 21:24:32" class="newsItem"&gt;&lt;/div&gt;
</code></pre>

<p>The 1000003 is the ID i need to get into one separate variable and the rest is the timestamp I need in another separate variable.</p>

<p>The jQuery I have:</p>

<pre><code>window.setInterval(function(){
     //scripting here

     var obj = $('.newsItem:first').map(function(_, elem){
     return elem.id;

     });


     var ids = $.makeArray(obj); //variable of IDS

      $.get("AJAX/get_feed_updates.php",{ ids: ids },function(result){

     $("#newsFeed").html(result);
     }); 


     }, 5000);
</code></pre>

<p>The PHP file just puts the ID into a variable and querys the database with it. </p>
