subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
Develop the program incrementally: a) start by reading and displaying each line of the input file to make sure you are reading the data set correctly. b) use the split string method to extract information from each line into a list. print the list to prove that this step is working correctly. d) convert the exam scores to type int and calculate the student’s average. display those items to prove this step is working correctly. e) create a tuple containing the six items for each student (name, exam scores, exam mean). display the tuples to prove this step is working correctly. (optionally, you may want to have the exam scores in a list so your tuple is (name, scores_list, f) append each tuple to a list. display the list to prove this step is working correctly. g) use the sort list method to re-order the tuples in the list. display the list to prove this step is working correctly. h) use a for statement to display the contents of the list as a table (with appropriate formatting). i) use a for statement to calculate the average of all scores on exam #1, then display the results. note that you could have calculated this average within the first loop, but we are explicitly requiring you to do this calculation by looping though your list of tuples. j) add the logic to calculate the average of all scores on exam #2, then display the results.
Answers: 2
question
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
Answers: 1
You know the right answer?
Write a simple web page that consists of two text fields and a button. Both text fields should be in...
Questions
question
Mathematics, 24.07.2021 07:50
question
Mathematics, 24.07.2021 07:50
question
Mathematics, 24.07.2021 07:50
question
Mathematics, 24.07.2021 07:50
question
Mathematics, 24.07.2021 07:50
Questions on the website: 13722361