query action with php
<p>I have a command that get data in mysql with php and have the follow command to remove a div (can have multiples removes):</p>

<pre><code>echo "&lt;div id='".$experience['index_of_form']."'&gt;";
echo "&lt;a href='#remove' id='remove' name='".$experience['index_of_form']."' style='text-align: right; text-decoration: underline;'&gt;Remove&lt;/a&gt;
echo "&lt;/div&gt;";
</code></pre>

<p>When I see the output the name is experience1 (example), or experience2. So far so good.</p>

<p>To remove I have this jquery function:</p>

<pre><code>$('#remove').live("click", function() {
var name_of_experience = $('#remove').attr("name");
$('#'+name_of_experience+'').remove();
});
</code></pre>

<p>The problem is if I have a remove link with name experience2 he will remove the div with the name experience1! I dont know why, because when I see in the output, the name of the link is experience2 and not experience1.</p>
