title: JQuery function as var, and then executing var on action
body: <p>I have a function:</p>
  
  <pre><code>var oneWay = function (){
      $(".one-way").show();
      $(".round-trip").hide();
      $(".multi-stop").hide();
   };
  </code></pre>
  
  <p>I want to trigger this function on an action, i.e.:</p>
  
  <pre><code>$(document).ready(function(){
      $("input:radio[value=one-way]").click('oneWay');
  });
  </code></pre>
  
  <p>But this isn't working. I think my syntax might be off.</p>
  
  <p>Also, what if I wanted to just execute this function when the DOM is ready? Would it be this:</p>
  
  <pre><code>$(document).ready(function(){
     oneWay; 
  });
  </code></pre>
  
  <p>Thanks,
  Brian</p>