MCQsLearn App Free MCQsLearn App Download - Android - iOS
As an Amazon Associate I earn from qualifying purchases.

Jquery Interview Questions and Answers Test 1 PDF Download

 App (Apple App Store) App (Google Play Store)

Jquery interview questions with answers, jquery test 1 to practice jquery questions for executive interview preparation. Learn jquery on user interface jquery, microsoft cdn, jquery cdn, jquery basics, jquery alert code questions and answers for jobs.

FAQs: Jquery Test 1

Question: Write script to load JQuery user interface.

Answer:

<script src=“https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js”></script>

Question: Write script to load JQuery framework from Microsoft CDN.

Answer:

<script type=“text/JavaScript” src=“http://ajax.microsoft.com/ajax/jquery/jquery-1.9.1.min.js”></script>

Question: Write script to load JQuery CDN.

Answer:

To use the JQuery CDN, use th following CDN script:<script src=“//code.jquery.com/jquery-1.11.3.min.js”></script>

Question: How JQuery works?

Answer:

Following is a basic coding example to get start using Jquery:

<!doctype html><html><head><meta charset=“utf-8”><title>JQuery Basics</title></head><body><a href=“http://jquery.com/”>jQuery Tutorial</a><script src=“jquery.js”></script><script>// write yours code here</script></body></html>

Question: Write a JQuery code to display an alert "Welcome to MCQsLearn.com" on webpage load.

Answer:

window.onload = function() { alert( “Welcome to MCQsLearn.com” ); };

The above code displays alert when after the browser finishes loading the document.

Question: Write a code to display an alert when an event occurs.

Answer:

$( document ).ready(function() { $( “a” ).click(function( event ) { alert( “Thanks for visiting MCQsLearn!” ); }); });

Question: What is role of method .bind() to use?

Answer:

.bind() method is used to attach a handler to an event for the elements.

Question: What is role of method .blur() to use?

Answer:

.blur() method is used to bind an event handler to the “blur” JavaScript event.