php jquery get the value of each td it get on the first td
<p>i have this jquery,
then i used foreach to display all the records in my database.</p>

<p>now im trying to do is pass the value to jquery, but the value was read only the first td.</p>

<p>my jquery</p>

<pre><code>jQuery('#nannyedit').click(function(){
    jQuery('&lt;img src="&lt;?php echo plugins_url( 'images/jon-loader.gif', __FILE__ ); ?&gt;" id="loading" /&gt;').appendTo("#container");
    var unanny = jQuery(this).parent().siblings("input[name=nanny]:first").val();
    var access = jQuery( 'input[name=access]' ).val();

    alert( unanny );
    jQuery.ajax({
        type: "GET",
        url: "&lt;?php echo plugins_url( 'edit.php', __FILE__ ); ?&gt;",
        data: { user_login: unanny, access: access },
        dataType: 'html',
        target: '#tab-1',
        success: function(data){
            jQuery("#container").find('img#loading').remove();
            jQuery("#container").html(data);
        }
    })
}); 
</code></pre>

<p>my html</p>

<pre><code>&lt;table cellpadding="5" cellspacing="0"&gt;
    &lt;thead&gt;
    &lt;tr&gt;
        &lt;th&gt;Username&lt;/th&gt;
        &lt;th&gt;Email&lt;/th&gt;
        &lt;th&gt;First Name&lt;/th&gt;
        &lt;th&gt;Middle Name&lt;/th&gt;
        &lt;th&gt;Last Name&lt;/th&gt;
        &lt;th&gt;Status&lt;/th&gt;
        &lt;th&gt;Photo&lt;/th&gt;
        &lt;th&gt;Resume&lt;/th&gt;
        &lt;th&gt;Date&lt;/th&gt;
        &lt;th&gt;Option&lt;/th&gt;
     &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
&lt;?php
global $wpdb;
$mynanny = $wpdb-&gt;get_results( "SELECT * FROM jon_nanny" );
$color1 = "#FDF7E1"; 
$color2 = "#FFFFFF"; 
$row_count = 0;
foreach ($mynanny as $nanny) {
    $mynannyphoto = $wpdb-&gt;get_row( "SELECT * FROM jon_nanny_photo WHERE user_login = '".$nanny-&gt;user_login."' " );
    $mynannyresume = $wpdb-&gt;get_row( "SELECT * FROM jon_nanny_resume WHERE user_login = '".$nanny-&gt;user_login."' " );
$row_color = ($row_count % 2) ? $color1 : $color2;
$uploads = wp_upload_dir();
$upload_dir = ( $uploads['url'] );
    ?&gt;
        &lt;tr&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;"&gt;&lt;?php echo $nanny-&gt;user_login; ?&gt;&lt;/td&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;"&gt;&lt;?php echo $nanny-&gt;email; ?&gt;&lt;/td&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;"&gt;&lt;?php echo $nanny-&gt;fname; ?&gt;&lt;/td&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;"&gt;&lt;?php echo $nanny-&gt;mname; ?&gt;&lt;/td&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;"&gt;&lt;?php echo $nanny-&gt;lname; ?&gt;&lt;/td&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;"&gt;&lt;?php echo $nanny-&gt;user_status; ?&gt;&lt;/td&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;"&gt;
            &lt;img src="&lt;?php echo $upload_dir.'/'.$mynannyphoto-&gt;imgname; ?&gt;" width="150" /&gt;
            &lt;/td&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;"&gt;
            &lt;a href="&lt;?php echo $upload_dir.'/'.$mynannyresume-&gt;resume; ?&gt;" /&gt;
                &lt;img src="&lt;?php echo plugins_url( 'images/resume.png', __FILE__ ); ?&gt;" /&gt;
            &lt;/a&gt;
            &lt;/td&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;"&gt;&lt;?php echo $nanny-&gt;date; ?&gt;&lt;/td&gt;
            &lt;td style="background-color:&lt;? echo $row_color; ?&gt;" id="getnan"&gt;
            &lt;?php
            $url = admin_url();    
            ?&gt;
            &lt;input type="hidden" name="nanny" value="&lt;?php echo $nanny-&gt;user_login;?&gt;" /&gt;
            &lt;input type="hidden" name="access" value="nanny" /&gt;
            &lt;a href="#" id="nannyedit"&gt;
                &lt;img src="&lt;?php echo plugins_url( 'images/edit-file-icon.png', __FILE__ ); ?&gt;" /&gt;
            &lt;/a&gt;
            &lt;a href=""&gt;
                &lt;img src="&lt;?php echo plugins_url( 'images/delete-file-icon.png', __FILE__ ); ?&gt;" /&gt;
            &lt;/a&gt;
            &lt;a href="" title="View"&gt;
                &lt;img src="&lt;?php echo plugins_url( 'images/Document-icon.png', __FILE__ ); ?&gt;" /&gt;
            &lt;/a&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
&lt;?php
$row_count++;
}       
?&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>

<p>is my jquery wrong?
please tell me thank you.</p>
