Question
Q1 What is true of the following code? $(h2).next().toggle(); a The next siblings of all h2 elements will become hidden or shown with the alternate
Q1
What is true of the following code?
$("h2").next().toggle();
a | The next siblings of all h2 elements will become hidden or shown with the alternate clicks. |
b | The h2 heading, which is right after the last h2 element on the page, will become hidden or shown with the alternate clicks. |
c | The statement is incorrect because you cannot use two methods , one after another. |
d | All h2 elements and the next siblings right after them will will become hidden or shown with the alternate clicks. |
---------------------------------------------------
Question 2
When will the function shipCost() be executed for the first time?
window.onload = function() {
$("ship").onclick = shipCost();
};
a | When the user clicks on it. |
b | It will never be executed because the code is not correct |
c | When the page loads |
d | When the user clicks or double clicks on it. |
------------------------------------------------------
Question 3
To include the jQuery library in a web page, you _____________. (Check all that applies)
a | don't have to reference it as all modern browsers can recognize a jQuery code |
b | can download the jQuery library and reference it with the HTML paragraph1 paragraph2 paragraph3 |