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

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

2

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

3

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

4

What scripting language is jQuery written in?

5

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

Comments