Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STEP 1
- In the head of the same page within which the full source of the form has been embedded, add the following script:
- <script type="text/javascript">
- function totalx2()
- {
- a = document.form_12621934763.q1_whatI.value
- b = document.form_12621934763.q3_myExpanded.value
- c = (a * 2) + (b * 2)
- document.form_12621934763.q4_myTwo.value = c.toFixed(2);
- }
- </script>
- STEP 2
- Search for the following in the form's source that's embedded in the page:
- <input type="text" class="form-textbox" id="input_4" name="q4_myTwo" size="15" />
- and change it to this:
- <input type="text" class="form-textbox" id="input_4" name="q4_myTwo" size="15" onfocus="totalx2();" />
- STEP 3
- Save the change
Advertisement
Add Comment
Please, Sign In to add comment