Best Online Resource For Non-Resident Indians      SEARCH COOLNRI.COM
Welcome Guest Search | Active Topics | Members | Log In | Register

JQuery Interview Questions Options
Posted: Monday, May 23, 2011 11:02:48 PM
Rank: Member
Groups: Member

Joined: 3/6/2008
Posts: 1
What is Jquery?
JQuery is Java Script library or Java Script Framework which helps in how to traverse HTML documents, do some cool animations, and add Ajax interaction to any web page. It mainly helps programmer to reduce lines of code as huge code written in Java Script, can be done easily with JQuery in few lines.

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

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()

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
What is 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.

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 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.

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.

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
Over here $ sign can be replaced with “jQuery ” keyword.

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

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

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

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

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

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

How can we modify css class using JQuery library.

Suppose that Css class has following defination

now we want to add border property on above class, so we should follow below code.

$(“.class”).css(“border”,”1px solid blue”);
Where $(“.class”) name of css class. Now .class will automatically add border property in his class definition.

How can we apply css in div element using JQuery library.

This is example to apply css on a div element which have id name myDivId.
$(”#myDivId “).css(”border”,”3px solid red”);
To apply css on all div elements use below code.$(“div”).css(“border”,”3px solid red”);

Where$(“div”) pointing all div elements in the page.For You need to use.$(”P”) on above code.

How can we submit a form by ajax using Jquery.

Please follow below code to submit a form by ajax using jquery

$(‘#formid).submit(function() {
type: “POST”,
url: “back.php”,
data: “name=php&location=india”,
success: function(msg) {
alert( “Data Saved: ” + msg );

Where formid is the form ID.”POST” is the method by which you want to send data.You can also use “GET” method.”back.php” is the php file which you want to call.”name=php&location=india” This is values of control. success: function(msg){ alert (“Data Saved: ” + msg); } This is a success function, This will execute after success of you post.Often in Ajax back.php does not refresh because this is cached by browser. To avoid this issue add [cache: false,] in above code.Loads data synchronously. Blocks the browser while the requests is active. It is better to block user interaction by other means when synchronization is necessary.

To avoid this issue add [async: false,] in above code.

How can we get value of textbox in jquery.

Include jquery library in the head section of page. Then use below code.

What is Jquery? How Jquery will work?

Jquery is lightweight javascript library file.
Jquery run in all browsers.
Jquery is client side scripting language.
Jquery browser depended framework.
Jquery developed by javascript.

Can we combine Jquery combined with other libraries?

Jquery combined with other java script libraries like prototype, mootools that time Jquery coding will be conflict with other libraries.
So that time use this command for non -conflict jquery with other java script libraries.

Posted: Friday, December 21, 2012 8:14:37 PM
Rank: Newbie
Groups: Member

Joined: 12/21/2012
Posts: 1
Location: Delhi
more advanced jquery interview question include:
1) How do you choose a plugin from a set of plugins performing the same job?
2) How would you ensure that your jQuery based application is cross browser?
3) How does adding minified jquery js file differ from adding the non-minified version?
some more jQuery interview questions
Posted: Wednesday, October 30, 2013 3:18:34 AM
Rank: Newbie
Groups: Member

Joined: 10/30/2013
Posts: 1
Thank you very much for these questions......
Users browsing this topic

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS