jQuery Multiple choices


Total available count: 24
Subject - JavaScript Frameworks
Subsubject - jQuery

Which jQuery method is used to hide selected elements?


 

 

 

 



D


Solution:-

The jQuery hide() method is used to hide selected elements. Tip: This is similar to the CSS display: none; property. Note: Hidden elements will not be displayed at all (no longer affects the layout of the web page). Tip: To show hidden elements, look at the show() method.

Syntax:-

$(selector).hide(speed,easing,callback);

Example:-
Hide all <img> elements:

$("button").click(function(){
 $("img").hide();
});



Next 5 multiple choice(s)

1

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

2

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

3

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

4

Is it possible to use jQuery together with AJAX?

5

Is jQuery a library for client scripting or server scripting?

Comments