Computer Science 571 2nd Exam Prof. , December 3, 2013, 12:30pm – 1:45pm
1. This is a closed book exam.
2. Please answer all questions on the test
jQuery [20 pts]
Copyright By PowCoder代写 加微信 powcoder
Javascript + Ajax [20 pts]
PHP + Regular Expressions [15 pts] Cookies and Privacy [15 pts]
XML Schemas [15 pts]
Web Security [15 pts]
jQuery [20 pts]
1. [10 pts]
Student ID Number:
Below is a web page with three occurrences of the sentence “This is a paragraph”. The first sentence has a red background, the second has a green background and the third has a blue background. The button “Set background-color of p” resets the background color of all three sentences to yellow background. Below is the code that accomplishes this. Fill in the missing jQuery pieces.
Initial screen all the same color
This study source was downloaded by 100000827663389 from CourseHero.com on 10-04-2022 23:00:16 GMT -05:00
https://www.coursehero.com/file/11496937/cs571-13fa-final-horowitz-s2V2-answers/
$(document).ready(function(){
$(“button”).click(function(){ $(“p”).css(“background-color”,”yellow”);
This is a heading
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.