Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh a field

Status
Not open for further replies.

Ladyborg

Programmer
Joined
May 11, 2002
Messages
208
Location
US
I'm using UD shopping cart extension and need "price" field to be refreshed on the order page when user chooses a different "size" item (different sizes cost different prices). I know it's probably a really simple JavaScript code but I can't find it.

Any help is highly appreciated. Ladyborg
"Don't be afraid to try new things,
Remember: professionals built the Titanic, amateurs built the Ark"
 
I know what it is you're after and I sourced some pretty nifty javascripts at javascript.internet.com.
Look through the form section and rty out some of the examples.

I think that something like this would be what you're after:

If you have a function called Calculatetotal(), and the answer was 'totalvalue' in a textfield called total then at the foot of the calculation place the code;
document.form.total.value = totalvalue;

Hope that kinda helps!

M "There are 3 kinds of people; those that can count and those that can't"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top