attribute isn't being passed through properly jquery
<p>I'm trying to pass through database parameters into a table where it shows the contents of the selected item. Here is how I'm trying to do it:</p>

<pre><code>function secondAcc(){
 $('input:checked').each(function(i) {
    subsetofmymembers[i]=mymembers[$(this).attr('id')];
 });
  $('#username').val(subsetmymembers[0].username);
  $('#fname').val(subsetmymembers[0].fname);
  $('#lname').val(subsetmymembers[0].lname);
  $('#address1').val(subsetmymembers[0].address1);
  $('#town').val(subsetmymembers[0].town);
  $('#county').val(subsetmymembers[0].county);
  $('#postcode').val(subsetmymembers[0].postcode);
  $('#phone').val(subsetmymembers[0].phone);
  $('#email').val(subsetmymembers[0].email);
  $('#status').val(subsetmymembers[0].status);  
}
</code></pre>

<p>secondAcc is called when I click the accordion in order to view the selected items. But it only ever shows the first record (which I haven't clicked). I'm unsure how to fix this. Anybody able to help?</p>
