Calculate

They have: 38 posts

Joined: Dec 2002

I have two text fields. In one you enter a number. The second one should automatically fill in 20% of the number in the first text box.

How can this be done using javascript?

Thanks!
Jody

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

onblur(this.other.field = function that calculates the percentage for the other field)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.