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

What scripting language is jQuery written in?

2

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

3

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

4

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

5

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

Comments