title: jQuery - Click call function and click function
body: <p>Basically when I click a button I want to call a function and run the button click function:</p>
  
  <p>This jQuery runs when the page loads:</p>
  
  <pre><code>jQuery( document ).ready( function ( $ ) {
    $('ul li:first-child').addClass( 'first_item' );
    className = $('.first_item').attr('id');
    alert('Date is:'+ className +'.');
  });
  </code></pre>
  
  <p>And this jQuery runs when the a button is clicked:</p>
  
  <pre><code>jQuery( document ).ready( function ( $ ) {
      $('.button').click(function() {
          $('.tweets ul').prepend($('.refreshMe').html());
      });
  });
  </code></pre>
  
  <p>I want to do both when the button is clicked, how can i combine the two?</p>
  
  <p>P.P:</p>
  
  <p>What If i wanted to add another function into the mix, all to run together:</p>
  
  <pre><code>    $(".refreshMe").everyTime(5000,function(i){
          $.ajax({
            url: "test.php?latest="+className+"",
            cache: false,
            success: function(html){
              $(".refreshMe").html(html);
            }
          })
      })
  </code></pre>