jquery how do I combine data() objects
<p>I have two data objects stored on different nodes in the dom</p>

<p>ie</p>

<pre><code>$('node1').data('id','1');
$('node2').data('id','1');
</code></pre>

<p>How do I combine these in order to attatch them to the <strong>data</strong> attribute in the ajax object</p>

<pre><code>$.ajax({
  url: 'http://localhost:8080/test.html',
  timeout: 3000,
  cache: false,
  data: // combined node1 and node2 here!,
  success: function(data){
  }
});
</code></pre>

<p>Thanks in advance</p>
