title: jQuery 'if .change() or .keyup()'
body: <p>Using jQuery i would like to run a function when either <code>.change()</code> or <code>.keyup()</code> are raised.</p>
  
  <p>Something like this.</p>
  
  <pre><code>if ( jQuery(':input').change() || jQuery(':input').keyup() )
  {
      alert( 'something happened!' );
  }
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Sorry i forgot to mention. Both <code>.change()</code> and <code>.keyup()</code> need some of the variables to be in-scope.</p>