title: Programmatically trigger a blur event with jQuery
body: <p>I have a matrix of sort with rows of inputs of class oneInput and I have a jquery function that triggers on the blur event of any of those inputs and sums the row and the column and inserts the sum into the proper place -- all of this works like I intend.</p>
  
  <p>What I am trying to do is on page load to total all rows and columns with the initial values. I am calling an init() function on document.ready and I have tried both of the following without success.</p>
  
  <pre><code>function init(){
    $('.oneInput').trigger('blur');
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>function init(){
      $('.oneInput').each(function(){
        $(this).trigger('blur');
      });
    }
  </code></pre>
  
  <p>The function that is triggered on that blur event is this:</p>
  
  <pre><code>$(".oneInput").blur(function(){
      // Tally Row
      var thisRow = $(this).closest('tr');
      var rowTotal = 0;
      thisRow.find('input.oneInput').each(function() {
          var n = parseFloat(this.value);
          if(!isNaN(n))
              rowTotal += n;
        });
       $(this).parent().parent().find( 'input.screenOneTotal').empty().val( rowTotal );
  
       // Tally Column
       var colName = $(this).attr('name');
       var col = colName.substr(0,3);
       var spanName = "input#tot"+col;
       var tot = parseInt($("input[name='"+col+"1']").val())+parseInt($("input[name='"+col+"2']").val())+parseInt($("input[name='"+col+"3']").val())+parseInt($("input[name='"+col+"4']").val())+parseInt($("input[name='"+col+"5']").val())+parseInt($("input[name='"+col+"6']").val())+parseInt($("input[name='"+col+"7']").val())+parseInt($("input[name='"+col+"8']").val())+parseInt($("input[name='"+col+"9']").val())+parseInt($("input[name='"+col+"10']").val())+parseInt($("input[name='"+col+"11']").val())+parseInt($("input[name='"+col+"12']").val());
       $(spanName).empty().val(tot);
  
       //GRAND TOTAL
       var gTotalOne = parseInt($("#totLIB").html())+parseInt($("#totRPI").html())+parseInt($("#totLMM").html());
       $("#scrOneTotal").empty().html(gTotalOne);
    }); // end inputOne blur
  </code></pre>
  
  <p>If needed I can supply the rest of the page code but it is in php and requires a database.</p>