21 :: Explain the concepts of "$ function" in jQuery with an example?
The type of a function is "function".There are a lot of anonymous functions is jquery.
$(document).ready(function() {});
$("a").click(function() {});
$.ajax({
url: "someurl.php",
success: function() {}
});
22 :: Why is 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.
24 :: When can you use jQuery?
JQuery can be used toapply CSS
call functions on events
traverse the documents
manipulation purpose and
to add effects too.
25 :: 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
0 comments:
Post a Comment