Question: QUESTION 2 [15 MARKS 1. 2. 3. Sample Web Page 4. 5. 6. function sum) 7. 8. var number1, number 2; 9. number 1 -

 QUESTION 2 [15 MARKS 1. 2. 3. Sample Web Page 4.

QUESTION 2 [15 MARKS 1. 2. 3.

Sample Web Page

4. 5. 17. 18.

Sample Javascript Program

19.

Enter Your First Number : 20. 21.

22. Enter your second Number : 23. 24.

Sum (Answer) : 25.

26. 27. Figure 2: HTML Source Code a) Based on Figure 2, illustrate the output will be display in google chrome and Modify the Javascript code to display the output in text3. [5 Marks) b) Create a javascript function to validate the numeric values entered in text and text2. Display the appropriate message to the user for invalid entry and hightlight empty textfields by red color when the button is clicked. [10 Marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!