WDV221 Intro Javascript

Form Processing, Operators

Instructions:

Use the form fields for the input values. For each of the following exercises create a function that will be activated by the button.

For problems 1. and 2. display the resuts into the provided text field

For problems 3., 4. and 5. display the results in the span elements. Provide some CSS styling to highlight the displayed content.

The Reset button should clear all form fields and all display fields

Note: Place a comment in each script with the exercise number and a description of what the script is supposed to do.




1.


2.


3. Display the value of value1 * value2:


4. Display the results of value1 + value2 in the following textfield.


5. Use the increment operator to add 1 to count and display the new value of count:


6. Display a random number between 1 and 10:


Return to WDV 221 Homework Page