How do I pick the current selector from Multiple Options, e.g. $("#div1, #div2, #div3, #div4).click(function(){ //Get the Current Selected Picked });

How do I pick the current selector from Multiple Options, e.g. $("#div1, #div2, #div3, #div4).click(function(){ //Get the Current Selected Picked });

  1. $("#div1, #div2, #div3, #div4).click(function(){
  2.          //Get the Current Selected Picked  
  3.         //I Would like to get if the item clicked was the Div1 or Div 2 or Div 3 so I can make changes in the selector chosen
  4. });


How do I do that? It's really simple but I tried $(this) but does not work, if someone has a solution for this.. Thanks!