title: Not sure how to grab the variables properly
body: <p>I am trying to make it so when a user clicks a radio it sets a variable, then clicks a second radio and makes a second variable. </p>
  
  <p>Then I want to merge those two variables and load some data via ajax based on the variable that is created. To test it I made a button I could click just to test if the variable is there but it's not showing up so I am assuming I'm not doing something right. </p>
  
  <p>I really appreciate your help, I am very new to this and just having a lot of trouble.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(function(){
      $("input:radio[name=f_1]").click(function() {
        type = $(this).val();
      });
  
      $("input:radio[name=f_1a]").click(function() {
        prod = $(this).val();
      });
  
      var type, prod;
      var JobType = type + prod;
      $("#alertButton").click(function(){
        alert (JobType);
      });
    });
  &lt;/script&gt;
  </code></pre>