This is a mirror of official site: http://jasper-net.blogspot.com/

Simple Guide: How To Get Started With jQuery (Part One)

| Wednesday, January 26, 2011
So, you have heard of this wonderful Javascript library named jQuery. What exactly is jQuery?
How can it make my life easier as a developer? How do I get started? Well, jQuery makes writing Javascript fun again and really allows you to take advantage of some of the more difficult aspects of Javascript with relative ease. Today, we will have a look at how to get started with jQuery, and writing your first script!

So What Is jQuery?

jQuery is a very lightweight Javascript library (some call it a framework), that takes most of the headache out from writing pure Javascript in your applications. It has many very powerful features, some of which include: easily traversing the DOM, adding slick animations and effects to elements, and super simple Ajax techniques and methods. Perhaps the jQuery home page describes jQuery most accurately:
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.

What Are Some Of The Benefits Of jQuery?

Of course, you wouldn’t use a framework or library if there was no benefit or positive result that would come from using it. Let’s briefly go over some of the benefits and features of using the jQuery library.
It dramatically reduces the amount of code that needs to be written compared to pure Javascript, which leads to less development time and more readable code. We will go over some example code later on in this article.
It is (arguably) much easier to understand than scripting with pure Javascript. In this world, the quicker and easier it is to finish the development process the more time we have to focus on other goals.
The documentation is extremely well organized and the community is very active with helping out anyone who may be struggling with a snippet of code.
It makes using Ajax extremely easy, it only takes about 5 lines (sometimes less!) of code to make a simple Ajax call.
A wide range of plugins and extensions have been developed for jQuery to make it easy for you to get the exact functionality you are looking for.
jQuery is fun!

How Do I Get Started?

The first thing you need to do to get started with jQuery is visit the jQuery home page and download the latest version of jQuery. Once you have downloaded the jQuery library, simply upload the library to your server and link to in in the <head> section of your document as seen in the code below.

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

Read more: spyrestudios

Posted via email from Jasper-net

0 comments: