Category Archives: jQuery Questions

Is jQuery a W3C standard? | jQuery Questions

A. No B. Yes Ans: B

Posted in jQuery Questions | Leave a comment

Look at the following jQuery selector: $(“div#intro .head”). What does it select? | jQuery Questions

A. The first element with id=”head” inside any div element with class=”intro” B. All elements with class=”head” inside the first div element with id=”intro” C. All div elements with id=”intro” or class=”head” Ans:C

Posted in jQuery Questions | Leave a comment

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

A. toggleClass() B. switch() C. altClass() D. switchClass() Ans: D

Posted in jQuery Questions | Leave a comment

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

A. noNameConflict() B. noConflict() C. nameConflict() D. conflict() Ans:D

Posted in jQuery Questions | Leave a comment

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

A. $(document).load() B. $(document).ready() C. $(body).onload() Ans:C

Posted in jQuery Questions | Leave a comment

What scripting language is jQuery written in? | jQuery Questions

A. VBScript B. JavaScript C. C# D. C++ Ans: B

Posted in jQuery Questions | Leave a comment

Which jQuery statement is true? | jQuery Questions

A. To use jQuery, you must buy the jQuery library at www.jquery.com B. To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser C. … Continue reading

Posted in jQuery Questions | Leave a comment

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

A. $(“div”).height=”100″ B. $(“div”).height(100) C. $(“div”).yPos(100) Ans:C

Posted in jQuery Questions | Leave a comment

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

A. jQuery.ajaxAsync() B. jQuery.ajax() C. jQuery.ajaxSetup() Ans:B

Posted in jQuery Questions | Leave a comment

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

A. css() B. html() C. style() Ans:A

Posted in jQuery Questions | Leave a comment