title: How To Detect Clicked div text with same ids
body: <pre><code>$(document).ready(function(){
  
      $('#peoplelayer').click(function(){
          $("#peoplelayer").each(function(){
  
              $("#peoplelayer").fadeOut(500);
              var str = $(this).text();
              alert(str);
              //$("#peoplelayer").fadeTo(500,0.6);
  
              });
  
      });
  });
  </code></pre>
  
  <p>This is code where i use the same id "#peoplelayer" to all the divs, and when i click on    one of them, it alerts all the texts of this div with the same id</p>
  
  <p>how can i defend this problem, as i need to alert only the clicked div, in addition to that i need to give this divs the same id ???</p>