W3Schools jQuery Quiz

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which jQuery method is used to remove selected elements?

Both methods can be used

The jQuery html() method works for both HTML and XML documents

False

What scripting language is jQuery written in?

JavaScript

Which statement is true? To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser To use jQuery, you must buy the jQuery library at www.jquery.com To use jQuery, you can refer to a hosted jQuery library at Google

To use jQuery, you can refer to a hosted jQuery library at Google

jQuery uses CSS selectors to select elements?

True

Which jQuery method is used to set one or more style properties for selected elements?

css()

Which jQuery method is used to hide selected elements?

hide()

Which jQuery method should be used to deal with name conflicts?

noConflict()

Which sign does jQuery use as a shortcut for jQuery?

the $ sign

Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?

toggleClass()

Look at the following selector: $(":disabled"). What does it select?

All disabled input elements

Look at the following selector: $("div"). What does it select?

All div elements

With jQuery, look at the following selector: $("div.intro"). What does it select?

All div elements with class="intro"

Look at the following selector: $("div p"). What does it select?

All p elements inside a div element

What is the correct jQuery code for making all div elements 100 pixels high?

$("div").height(100)

What is the correct jQuery code to set the background color of all p elements to red?

$("p").css("background-color","red");

Which jQuery function is used to prevent code from running, before the document is finished loading?

$(document).ready()

The jQuery animate() method can be used to animate ANY CSS property?

Only properties containing numeric values

Look at the following selector: $("p#intro"). What does it select?

The p element with id="intro"

Which of the following is correct?

jQuery is a JavaScript Library

Which jQuery method is used to perform an asynchronous HTTP request?

jQuery.ajax()

Which jQuery method returns the direct parent element of the selected element?

parent()

Is jQuery a library for client scripting or server scripting?

Client scripting

Is jQuery a W3C standard?

No

Is it possible to use jQuery together with AJAX?

Yes


Ensembles d'études connexes

Using Exponent Properties to Simplify Expressions

View Set

Principles of Marketing - Exam 2

View Set

Facilities Planning Product, Process and Schedule Design

View Set

Med Surg 2 Ch 45: Assessment and Management of Patients with Endocrine Disorders

View Set

Marina Fahmy 2017 day 888 -= Revision ِِِِA

View Set