jQuery Multiple choices


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

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


 

 

 

 



B


Solution:-

Look at the following selector: 

$("p#intro")

What does it select?

From the above selector, it selects all the p elements with ID intro. p is an element in HTML and the # tag indicates the ID of the element.




Next 5 multiple choice(s)

1

Is jQuery a W3C standard?

2

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

3

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

4

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

5

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

Comments