Communication issue between PHP and jQuery
<p>I have a page generated from PHP like this:</p>

<pre><code>&lt;?php
    //In my original code, this is retrieved from databas..
    $users = array(
        array('id'=&gt;1, 'login'=&gt;'login1', 'email'=&gt;'email1')
    );  
    foreach($users as $user){
        echo '&lt;tr&gt;&lt;td&gt;'.$user['login'].'&lt;/td&gt;&lt;td&gt;'.$user['email'].'&lt;/td&gt;&lt;td&gt;&lt;button class="button-delete"&gt;Delete&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;';
    }
?&gt;
</code></pre>

<p>Then, in front side I have this script:    </p>

<pre><code>$('.button-delete').click(function(){
    var id=0;
    alert(id);
});
</code></pre>

<p>My aim is to make Delete button perform an ajax call to delete the user. Till now I didn't got there yet, my problem is how to get the user ID?</p>
