title: Do something javascript before asp.net anypostback
body: <p>I wanna do something in javascript before page goes for post back.</p>
  
  <p>How to run a javascript function before any asp.net postback? </p>
  
  <pre><code>$('form').submit(function () {
        alert('hello');
  });
  </code></pre>
  
  <p>It doesn't work... :(</p>