title: Bind onClick event to a .click function
body: <p>I have an image that I want to execute a link with a javascript onClick event when the image is clicked.</p>
  
  <p>The link is:</p>
  
  <pre><code>&lt;a class="test" href="javascript:;" onclick="foo.add( 'name=name', 'quantity=1' );"&gt;
  &lt;img src="pic.png" alt="Click" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Jquery I am fiddling with</p>
  
  <pre><code>$('.test').click(function(){
  onclick = $(this).attr('onclick');
  $(this).attr('onclick','');
      return false;
  });
  </code></pre>
  
  <p>Not working...</p>