title: Jquery/Javascript target in function
body: <p>I have a function that I am calling with two images like so.</p>
  
  <pre><code>$('#image1').bind('click',doNext);
  $('#image2').bind('click',doNext);
  </code></pre>
  
  <p>I need to be able to tell which one called the function.</p>
  
  <pre><code>function doNext(){
  if(target == $('#image1'){
     alert('image1');
       }else{
     alert('image2');
      }
  }
  </code></pre>