Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using inline expressions for value property
Message
 
To
26/09/2001 18:14:37
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00561252
Message ID:
00561443
Views:
20
>Remove spaces after < character in the following code.
>
>
>Field1 < input name=f1 >
>Field2 < input name=f2 >
>Sum < input name=f3 value=javascript:"return f1.value+f2.value;" >
>
How about something like this...
< script >
function setf3value()
{
f3.value = parseInt(f1.value) + parseInt(f2.value)
}
< /script >
Field1 < input name=f1 value = 0 onblur="setf3value()" >
Field2 < input name=f2 value = 0 onblur="setf3value()" >
Sum < input name=f3 value="" >
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform