ITsolutionWizard
asked on
jquery initial load
originally I have this one(hello2.asp) below:
function CalTotals(pos){
var subTotal = Number(jQuery('input:hidde n[name=txt SubTotalHi t]').val() ) + Number(jQuery('input:hidde n[name=txt ExtnHit'+p os+']').va l());
}
And now,
I hope to do something like
function CalTotals(pos){
if the webpage is first loaded then
var subTotal = Number(jQuery('input:hidde n[name=txt SubTotalHi t]').val() );
else
var subTotal = Number(jQuery('input:hidde n[name=txt SubTotalHi t]').val() ) + Number(jQuery('input:hidde n[name=txt ExtnHit'+p os+']').va l());
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?
function CalTotals(pos){
var subTotal = Number(jQuery('input:hidde
}
And now,
I hope to do something like
function CalTotals(pos){
if the webpage is first loaded then
var subTotal = Number(jQuery('input:hidde
else
var subTotal = Number(jQuery('input:hidde
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.