How do I pick the current selector from Multiple Options, e.g. $("#div1, #div2, #div3, #div4).click(function(){ //Get the Current Selected Picked });
- $("#div1, #div2, #div3, #div4).click(function(){
- //Get the Current Selected Picked
- //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
- });
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!