jQuery Multiple choices


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

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


 

 

 

 



C


Solution:-
  1. Using the JavaScript width() method, you can set the width of a <div> box dynamically using the jQuery width() method
  2. Using the JavaScript height() method, you can set the height of a <div> box dynamically using the jQuery height() method

The jQuery code for making all div elements 300 pixels width as below:

$("div").width(300)

The jQuery code for making all div elements 300 pixels height as below:

$("div").height(300)



Next 5 multiple choice(s)

1

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

2

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

3

Which jQuery method is used to hide selected elements?

4

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

5

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

Comments