Hi, This script (below) is firing at page load. Are there any ideas how not to get it to fire until and event happens. Thanks for the help.
Greg $(document).ready(function () { if($('#DrainStackDiameter').val() != null){ $('#PowerPipeConfigurations').change(function(){ getResults (); }).change(); $('#TotalApartmentsServed').blur(function(){ getResults(); }).blur(); $('#TotalWashroomsPerApartment').blur(function(){ getResults(); }).blur (); $('#TotalPowerPipeUnits').blur(function(){ getResults(); }).blur(); $('#DrainStackLength').blur(function(){ getResults(); }).blur(); $('#DrainStackDiameter').change(function(){ getResults(); }).change(); } function getResults(){ var params = { PowerPipeConfigurations: $('#PowerPipeConfigurations').val(), TotalApartmentsServed: $('#TotalApartmentsServed').val(), TotalWashroomsPerApartment:$('#TotalWashroomsPerApartment').val (), TotalPowerPipeUnits: $('#TotalPowerPipeUnits').val(), DrainStackLength: $('#DrainStackLength').val(), DrainStackDiameter: $('#DrainStackDiameter').val() }; $('#RecommendedPowerPipeModel').load('recommend.php',params); }