Programmatically trigger a blur event with jQuery
Just add .blur()
to the end of your blur
function, it will invoke it on DOM ready:
$(".oneInput").blur(function(){
//code code and more code
}).blur();
Demo: http://jsfiddle.net/Exw3f/
Put your code into a separate function to call it on document.ready AND on the blur trigger.
Example
function calculateTotals() { ... }
$(document).ready(function() {
$('.oneInput').each(calculateTotals);
}):
$('.oneInput').blur(calculateTotals);