Link to home
Start Free TrialLog in
Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America

asked on

jquery initial load

originally I have this one(hello2.asp) below:

function CalTotals(pos){
var subTotal = Number(jQuery('input:hidden[name=txtSubTotalHit]').val()) + Number(jQuery('input:hidden[name=txtExtnHit'+pos+']').val());    
}


And now,

I hope to do something like

function CalTotals(pos){
if the webpage is first loaded then
var subTotal = Number(jQuery('input:hidden[name=txtSubTotalHit]').val());    
else
var subTotal = Number(jQuery('input:hidden[name=txtSubTotalHit]').val()) + Number(jQuery('input:hidden[name=txtExtnHit'+pos+']').val());    

end if
}


When hello1.asp will post a data to hello2.asp

the webpage is using jquery 1.4 and I hope to have first loaded event within CalTotals function in jquery.

Is it possible?
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial