title: Store variable based on if statement with jQuery selectors
body: <p>I'm new to both Javascript and the framework jQuery.</p>
  
  <p>Basically I'm trying to say that if the quantity is greater than 1 then don't charge a fee. However if it is equal to 1 charge a fee. But I don't know how to store the variables while using jQuery.</p>
  
  <p>My thought was... (is this correct?)</p>
  
  <pre><code>var qty = $(".qty_item");
  var price = $(".price_item");
  var fee = "";
  
  if (qyt==1) {
      var fee = 250;
  }
  
  else {
      var fee = 0;
  }
  </code></pre>
  
  <p>I've noticed though that in some jQuery plugins they declare variables like so...</p>
  
  <pre><code>qty: $(".qty_item"),
  price: $(".price_item")
  </code></pre>
  
  <p>Any help is much appreciated.</p>