title: Using Local variable value's in Jquery
body: <p>i'v got this functions at my script:</p>
  
  <pre><code>(document).ready(function () {
  $(".plcardFirst").change(function() {
  valueFirst = $( ".plcardFirst" ).val();
          });
  $(".plcardSecond").change(function() {
  valueSecond = $( ".plcardSecond" ).val();
      });
  });
  </code></pre>
  
  <p>How can i use <code>valueFirst</code> and <code>valueSecond</code> values to calculate and run an if statement? 
  many thanks </p>