1. What are the different type of selectors in Jquery?

There are 3 types of selectors in Jquery
1. CSS Selector
2. XPath Selector
3. Custom Selector

2. Name some of the methods of JQuery used to provide effects?

Some of the common methods are :
1. Show()
2. Hide()
3. Toggle()
4. FadeIn()
5. FadeOut()

3. Can you explain JQuery UI?

JQuery UI is a library which is built on top of JQuery library. JQuery UI comes with cool widgets, effects and interaction mechanism.

4. What are features of JQuery or what can be done using JQuery?

Features of Jquery
1. One can easily provide effects and can do animations.
2. Applying / Changing CSS.
3. Cool plugins.
4. Ajax support
5. DOM selection events
6. Event Handling

5. What are the steps you need to follow to use jQuery in ASP.Net project?

It's really simple. One just need to add reference of javascript file(.js). Go to Jquery.com and download the latest version of jQuery. When download is completed, there is a “jQuery-1.3.2.js” in the folder. Include this file and you good to go now for JQuery.

6. How is body onload() function is different from document.ready() function used in jQuery?

Document.ready() function is different from body onload() function because off 2 reasons.
1. We can have more than one document.ready() function in a page where we can have only one onload function.

2. Document.ready() function is called as soon as DOM is loaded where body.onload() function is called when everything gets loaded on the page that includes DOM, images and all associated resources of the page.

7. What does dollar Sign ($) means in JQuery?

Dollar Sign is nothing but it's an alias for JQuery. Take a look at below jQuery code
$(document).ready(function(){
});
Over here $ sign can be replaced with “jQuery ” keyword.
jQuery(document).ready(function(){
});

8. How can we apply css in odd childs of parent node using JQuery library?

$(”tr:odd”).css(”background-color”, “#bbbbff”);

9. How can we apply css in even childs of parent node using JQuery library?

$(”tr:even”).css(”background-color”, “#bbbbff”);

10. How can we apply css in last child of parent using JQuery library?

$(”tr:last”).css({backgroundColor: ‘yellow', fontWeight: ‘bolder'});

Download Interview PDF