Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using inline expressions for value property
Message
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00561252
Message ID:
00561443
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform