$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("slow");
});
});
<div id="flip"><table><td>Maria</td></table></div>
<div id="panel"><table><td>1.000</td></table></div>
<div id="flip"><table><td>José</td></table></div>
<div id="panel"><table><td>2.000</td></table></div>
Following the code above, I need to click on Mary and the value below (1,000) appears, and the same with Joseph. It works perfectly when you click on Mary, but not for Joseph. How do I solve this problem?