JQuery Developer

  Home  Client Side Scripting  JQuery Developer


“JQuery Developer related Frequently Asked Questions by expert members with experience in JQuery Developer. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts”



51 JQuery Developer Questions And Answers

21⟩ How jQuery Works?

<html>

<head>

<script type="text/javascript" src="jquery.js"></script>

<script type="text/javascript">

// You can write the code here

</script>

</head>

<body>

<a href="http://www.rendc.org/">Global GuideLine</a>

</body>

</html>

 164 views

23⟩ What are the advantages of jQuery?

The advantages of using jQuery are:

* JavaScript enhancement without the overhead of learning new syntax

* Ability to keep the code simple, clear, readable and reusable

* Eradication of the requirement of writing repetitious and complex loops and DOM scripting library calls.

 153 views

24⟩ When you use jQuery?

JQuery can be used to:

★ apply CSS

★ call functions on events

★ traverse the documents

★ manipulation purpose and

★ to add effects too.

 161 views

25⟩ Why jQuery better than JavaScript?

* jQuery is great library for developing ajax based application.

* It helps the programmers to keep code simple and concise and reusable.

* jQuery library simplifies the process of traversal of HTML DOM tree.

* jQuery can also handle events, perform animation, and add the Ajax support in web applications.

 153 views

37⟩ What is the use of jQuery.data()?

jQuery's data method gives us the ability to associate arbitrary data with DOM nodes and JavaScript objects. This makes our code more concise and clean.

 174 views

39⟩ What is the use of jquery .each() function?

Basically, the jQuery .each() function is used to loop through each element of the target jQuery object. Very useful for multi element DOM manipulation, looping arrays and object properties.

Example:

In this example alert box will open 3 times because dom contain 3 <li> tags

<script>

$(document).ready(function(){

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

$("li").each(function(){

alert($(this).text())

});

});

});

</script>

<ul>

<li>Coffee</li>

<li>Milk</li>

<li>Soda</li>

</ul>

 181 views