title: get the value of "onclick" with jQuery?
body: <p>Is it possible to get the current value of the onClick attribute of an A tag via jQuery?</p>
  
  <p>For example, I have:</p>
  
  <pre><code>&lt;a href="http://www.google.com" id="google" onclick="alert('hello')"&gt;Click&lt;/a&gt;
  </code></pre>
  
  <p>I want to get the onclick code so I can store it for later use (as I'll be changing the onclick event for a little while).</p>
  
  <p>Is it possible to do something like:</p>
  
  <pre><code>var link_click = $("#google").onclick;
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>var link_click = $("#google").click;
  </code></pre>
  
  <p>So that later on in my code I can re-apply that code, or eval() it if necessary?</p>