title: Getting type error on .text() function
body: <p>I am trying to calculate something using the values from json file below:</p>
  
  <pre><code>$(document).ready(function() {
          $.ajax({
              type : 'GET',
              url : 'outfitters.json',
              dataType : 'json',
              success : processTeam,
              error : function() {
                  alert('error');
              }
          });
  
          $('#outfitters').submit(function(event) {
              var days = ('#days').text();
              var final_price = days * (("#length").val() + ("#material").val() + ("fibre").val() + ("#kevlar").val());
  
              console.log(final_price);
              $("#price").html(final_price);
          });
  
  
      });
  
      function processTeam(data) {
          var company = data.company;
          $("h1").html(company);
  
          var locations = '';
          for ( i = 0; i &lt; data.locations.length; i++) {
  
              locations = data.locations[i].name;
              $("ul").append('&lt;li&gt;' + locations + '&lt;/li&gt;').listview('refresh');
  
          }
  
          var feet_12 = data.twelve;
          $("#12feet").val(feet_12);
  
          var feet_14 = data.fourteen;
          $("#14feet").val(feet_14);
  
          var feet_16 = data.sixteen;
          $("#16feet").val(feet_16);
  
          var fibre = data.fibreglass;
          $("#fibre").val(fibre);
  
          var kevlar = data.kevlar;
          $("#kevlar").val(kevlar);
  
          var paddles = data.paddles;
          $("#paddles").val(paddles);
  
          var lifevest = data.paddles;
          $("#lifevest").val(lifevest);
  
      }
  </code></pre>
  
  <p>But I am getting <code>TypeError: "#days".text is not a function</code> when I click the submit button.
  Doesn't look like a library problem as I am using the latest library. I am clueless as where I might be wrong?</p>