title: Update only works if I have an alert present
body: <p>I have written a function to sum a column of numbers and update a total underneath the table:</p>
  
  <pre><code>$(function () {
              function updateTotal() {
  
                  var sum = 0;
                  var totals = $('.drinkTotal')
                  jQuery.each(totals, function () {
  
                      var rTotal = parseFloat($(this).text());
                      sum += rTotal;
  
                  });
  
               //   alert();
                  fSum = parseFloat(sum).toFixed(2);
  
                  $("#MainContent_lblTotal").text(fSum);
              }
  });
  </code></pre>
  
  <p>The code works fine if I uncomment the alert, but if I remove it, the label is not updated. (It disappears?)</p>
  
  <p>How do I make this work without the alert?</p>