Design a page with at least two buttons and the corresponding JavaScript code that yields some interactivity
which results when the user clicks on those buttons. Example:
Mood.htm
Hello World 8 (Uses a variable and prompt to get input from user)
Hello World 9 (Uses a variable and get value from textbox)
Hello World 10 (Adds some jQuery -- based on pages 34 & 120 from
JavaScript & jQuery: the missing manual -- MacFarland)
1. Make a page like the following.
Lab is due a week after your lab day.
Wednesday:
Section 1
Addition_f16_01.html
Supposed to add two numbers -- but at this stage is concatenating two numbers
Section 2
addition_f16_02.html
Supposed to add two numbers -- but at this stage is concatenating two numbers
Friday:
Section 1
Addition_f16_01_B.html
Changed input type from text to number. Added parseInt. Also looked at parseFloat. Introdcuced
drop-down select element and used its onchange event to call a function.
Section 2
Addition_f16_02_B.html
Changed input type from text to number. Added parseInt. Also looked at parseFloat. Introdcuced
drop-down select element and used its onchange event to call a function.