Ans: jQuery is not a programming language but a well written JavaScript code. It is a JavaScript code, which do document traversing, event handling, Ajax interactions and Animations.
Ans: jQuery is needed for the following list:
Ans: No, jQuery HTML only works for HTML documents not for XML Documents.
Ans: Some of the effects methods are:
Ans: Efficiency of web page increases when minimized version of jQuery is used.min.js file will be more than 50% less than the normal js file. Reduction in the file size makes the web page faster.
Ans: jQuery is a library of JavaScript file and it consists of DOM, event effects and the Ajax functions. jQuery is said to be a single JavaScript file.
Ans: Mac, Windows and Linux are more compatible with the jQuery.
Ans: For adding a jQuery library reference to an ASP.Net page, you just need to specify the source of the library in the script tag.
If you are referencing a library from the project folder,
<script src="Scripts/jquery-1.10.2.min.js"></script>
If you are referencing the library from a CDN (Content Delivery Network)
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.10.2.js" type="text/javascript"></script>
Ans: The command $.ui.version returns jQuery UI version.
Ans: jQuery can be used in following scenarios:
Ans: Find method is used to find all levels down the DOM tree but children find single level down the DOM tree.
Ans: A ‘ jQuery connect’ is a plugin used to connect or bind a function with another function. Connect is used to execute function from any other function or plugin is executed.
Ans: Connect can be used by downloading jQuery connect file from jQuery.com and then include that file in the HTML file. Use $.connect function to connect a function to another function.
Q14. What are the features of jQuery, has been used in web applications?
Ans: jQuery uses features like Sliding, File uploading and accordian in web applications.
Ans: Browser compatibility of jQuery plugin is an issue and needs lot of time to fix it.
Ans: jQuery file should be added to the Master page and can use access from the content page directly without having any reference to it.
Ans: Following are the basic selectors in jQuery:
Ans: Yes, we can call C# code from jQuery as it supports .net application.
Ans: jQuery.data methods is used to associate the data with the DOM nodes and the objects. This data method makes the jQuery code clear and concise.
Ans: Each function is used to iterate each and every element of an object. It is used to loop DOM elements, arrays and the object properties.
Ans: Size and length both returns the number of element in an object. But length is faster than the size because length is a property and size is a method.
Ans: Yes, we can add more than one document.ready function in a page. But, body.onload can be added once in a page.
Ans: jQuery load method is a powerful AJAX method which is used to load the data from a server and assign the data into the element without loading the page.
Ans: Yes, We can use our own variable in place of $ by using the method called no Conflict () method.
var sample = $.noConflict()
Ans: The four parameters are:
Ans: The jQuery filter is used to filter the certain values from the object list based on the criteria. Example is to filter certain products from the master list of products in a cart website.
Ans: QUnit is used to test jQuery and it is very easy and efficient.
Ans: CDN is abbreviated as Content Distribution network and it is said to be a group of companies in different location with network containing copies of data files to maximize bandwidth in accessing the data.
Ans: There are two types of CDNs:
Ans: Dollar ($) sign is used as a shortcut for jQuery.
Ans: jQuery is a client scripting.
Ans: jQuery is a Javascript file and it is single javascript file that contains common DOM, event effects and Ajax functions.
Ans: There are two ways to debug jQuery:
Debugger keyword
Ans: Following are the ways to include jQuery in a page:
Ans: jQuery.ajax method is used for asynchronous HTTP requests.
Ans: jQuery javascript can be downloaded from jQuery official website – www.jquery.com
Ans: No, jQuery is not a replacement of JavaScript.
Ans: Chaining is used to connect multiple events and functions in a selector.
Ans: Following are the advantages of jQuery:
Ans: Yes, we can call C# code behind from jQuery.
Ans: jQuery data method is used to associate data with DOM nodes and JavaScript objects. This method will make a code very concise and neat.
Ans: In a page, we can have only one onload function but we can have more than one document.ready function. Document.ready function is called when DOM is loaded but onload function is called when DOM and images are loaded on the page.
Ans: jQuery each function is used to loop through each and every element of the target jQuery object. It is also useful for multi element DOM, looping arrays and object properties.
Ans: $.ajax can be called and by declaring WebMethod inside code behind using jQuery.
Ans: ID and Element are the fastest selectors in jQuery.
Ans: Class seectors are the slowest selectors in jQuery.
Ans: jQuery code is getting executed on a client browser.
Ans: ‘NoConflict’ method is used to reference a jQuery and save it in a variable. That variable can be used instead of Sign.
Q49. Why jQuery is better than JavaScript?
Ans: jQuery is a library used for developing Ajax application and it helps to write the code clean and concise. It also handles events, animation and Ajax support applications.
Ans: There are three types of selectors in jQuery:
Interested to learn jQuerry we are here to help you..... click here to read more....
Related Interview Questions...