title: jQuery run function onload and key up
body: <p>I have the following, which I would like to run for the first time when the page loads. Then I would like it to run on keyup as user makes changes. The function I would like to run is very large (stripped down for posting on here) so I don't want to duplicate the function. Is there a way to call the function onload and then reuse it on keyup? Thank you</p>
  
  <pre><code>  $(document).ready(function() {
       // this calculates the sum for some text nodes
       $("td, input").keyup(
          function (){
            var col_1revenue = $(".Col1Receipts, .Col1Receipts input").sum(); 
          } // function
        ); // keyup
      }); // document ready
  </code></pre>