title: Using JQuery within onClick
body: <p>Am I allowed to use JQuery within an onClick function?</p>
  
  <p>For example:</p>
  
  <p><code>&lt;a onclick="my_save_function($("#inputID").val())"&gt;</code><br />
    <code>&lt;input type=hidden id="inputID" value="foo"&gt;</code></p>
  
  <p>Such that, when clicked, the anchor tag runs this:</p>
  
  <p><code>my_save_function(foo);</code></p>
  
  <p>After a few searches, I couldn't find a similar topic. Thank you for any help. </p>