JQuery Programmer

  Home  Client Side Scripting  JQuery Programmer


“JQuery Programmer Frequently Asked Questions in various JQuery Developer job Interviews by interviewer. The set of questions here ensures that you offer a perfect answer posed to you. So get preparation for your new job hunting”



154 JQuery Programmer Questions And Answers

1⟩ Why jQuery is better than JavaScript?

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.

 197 views

2⟩ Why jQuery is needed?

jQuery is needed for the following list:

► Used to develop browser compatible web applications

► Improve the performance of an application

► Very fast and extensible

► UI related functions are written in minimal lines of codes

 193 views

3⟩ What are the four parameters used for jQuery Ajax method?

The four parameters are

► URL - Need to specify the URL to send the request

► type - Specifies type of request(Get or Post)

► data - Specifies data to be sent to server

► Cache - Whether the browser should cache the requested page

 225 views

9⟩ Which are the popular jQuery CDN? and what is the advantage of using CDN?

There are 3 popular jQuery CDNs.

1. Google.

2. Microsoft

3. jQuery.

Advantage of using CDN.

► It reduces the load from your server.

► It saves bandwidth. jQuery framework will load faster from these CDN.

► The most important benefit is it will be cached, if the user has visited any site which is using jQuery framework from any of these CDN

 197 views

10⟩ How can we debug jQuery?

There are two ways to debug jQuery:

Debugger keyword

► Add the debugger to the line from where we have to start debugging and then run Visual Studio in Debug mode with F5 function key.

► Insert a break point after attaching the process

 184 views

12⟩ How to use connect?

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.

 182 views

13⟩ Tell me what is jQuery connect?

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.

 187 views

14⟩ In what scenarios jQuery can be used?

jQuery can be used in following scenarios:

☛ Apply CSS static or dynamic

☛ Calling functions on events

☛ Manipulation purpose

☛ Mainly for Animation effects

 201 views

18⟩ How do you implement animation functionality?

The .animate() method allows us to create animation effects on any numeric CSS property. This method changes an element from one state to another with CSS styles. The CSS property value is changed gradually, to create an animated effect.

Syntax is:

(selector).animate({styles},speed,easing,callback)

styles: Specifies one or more CSS properties/values to animate.

duration: Optional. Specifies the speed of the animation.

easing: Optional. Specifies the speed of the element in different points of the animation. Default value is "swing".

callback: Optional. A function to be executed after the animation completes.

Simple use of animate function is,

$("btnClick").click(function(){

$("#dvBox").animate({height:"100px"});

});

 193 views

19⟩ Explain what is jQuery?

jQuery is a fast and concise JavaScript Library created by John Resig in 2006 with a nice motto - Write less, do more. jQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is a JavaScript toolkit designed to simplify various tasks by writing less code.

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.

 189 views

20⟩ Explain .empty() vs .remove() vs .detach()?

► .empty() method is used to remove all the child elements from matched elements.

► .remove() method is used to remove all the matched element. This method will remove all the jQuery data associated with the matched element.

► .detach() method is same as .remove() method except that the .detach() method doesn't remove jQuery data associated with the matched elements.

► .remove() is faster than .empty() or .detach() method.

Syntax:

$(selector).empty();

$(selector).remove();

$(selector).detach();

 227 views