title: Hyperlinks onclick function not working
body: <p>I need to handle a onlick function on hyperlinks but its not working..</p>
  
  <p>HTML Code:-</p>
  
  <pre><code>&lt;a href="#" onclick="updateParent()" id="2" value="2"&gt;CLICK HERE&lt;/a&gt;
  </code></pre>
  
  <p>Jquery:-</p>
  
  <pre><code>$(document).ready(function(){
  
      function updateParent(control) {
                      alert('Hi')
                  }
  
  })
  </code></pre>
  
  <p><a href="http://jsfiddle.net/sbnBy/1/" rel="nofollow">http://jsfiddle.net/sbnBy/1/</a></p>