Computers and Technology

Write a simple web page that consists of two text fields and a button. Both text fields should be initialized to zero. The user should only be allowed to write input into the first text field. Your page should include Javascript that contains a variable that keeps a running total of all the numbers inputted into the first text field. This variable should be inially zero. Every time the user clicks on the button, the value of the text field should be added to the running total and the running total should be displayed in the second textfield. For example, if the running total is 20, the user types in 5 into the first text field, and then clicks on the button, then the second text field should display 25. Your solution should use JavaScript and/or JQuery. Hints: Do not worry about including the link to the JQuery library or about user input validation (always assume a correct floating point number is inputted). Also, be careful when typing your solution since the text editor will sometimes interpret any HTML tags you write literally as HTML instructions. If this happens, try deleting the section that is interpreted as HTML and try typing it again. For example, when creating a button, if you write , you actually get a textfield, e. g., (fill in the blank here) textfield" If this happens, simply delete the textfield and try typing the HTML again.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:30, bellsbella34
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, sugaree95
What are three software programs for mobile computing?
Answers: 1
image
Computers and Technology, 23.06.2019 20:00, boo3972
Match the file formats with the types of multimedia they can store
Answers: 2
image
Computers and Technology, 24.06.2019 01:00, cheycheybabygirl01
How can the temperature of a room be raised by 5degreesf?
Answers: 1
Do you know the correct answer?
Write a simple web page that consists of two text fields and a button. Both text fields should be in...

Questions in other subjects:

Konu
Mathematics, 05.10.2020 16:01
Konu
Biology, 05.10.2020 16:01