HTML and CSS Reference
In-Depth Information
chapter 2
n n n
Overview of jQuery
To take advantage of many HTML5 features, you need to use client-side scripting techniques. Although
you can use JavaScript to accomplish this task, using jQuery is easier and more beneficial. If you're
developing a modern web application, chances are you're already using jQuery for your client-side
scripting needs. So, sticking with jQuery for programming HTML5 features will make your code more
readable, consistent, and manageable. In addition, jQuery offers many benefits over plain JavaScript
(selectors and Ajax calls, for example, as discussed in this chapter) that you can use in your client-side
code. Some HTML5 features require you to send data from the client to the server. This data transfer can
be done effectively through Ajax requests to the server, and jQuery offers rich support for making Ajax
requests. All the benefits mentioned here make jQuery an ideal choice for programming HTML5 features.
This chapter gives you an introduction to various jQuery features and constructs. However, the
chapter doesn't attempt to discuss every minuscule feature of jQuery. It focuses on features that are
frequently needed when programming HTML5 and that are used in the remainder of this topic.
Specifically, you learn the following:
• Event handling in jQuery
• jQuery selectors
• Manipulating the DOM using jQuery
• Ajax techniques in jQuery
n Note This chapter covers the basics of jQuery and how to use jQuery in ASP.NET applications. If you're already
familiar with jQuery, feel free to skip this chapter.
What Is jQuery?
The official jQuery web site ( ) de ines jQuery as follows:
jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing,
event handling, animating, and Ajax interactions for rapid web development. jQuery is
designed to change the way that you write JavaScript.
Let's try to understand this definition of jQuery in a bit more detail.
Search WWH ::

Custom Search