// May 22nd, 2009 // 8 Comments » // Design, Programming
So you’ve heard of this wonderful JavaScript library called jQuery. What exactly is jQuery?
How can I make my life easier as a developer? How do I start? Well, writing Javascript jQuery is fun again and you can really enjoy some of the most difficult aspects of Javascript with relative ease. Today we take a look at how to start with jQuery and writing your first script!
What is jQuery?
jQuery is a lightweight Javascript library (some call it a framework), which makes most of the headaches from writing pure Javascript in your applications. It has many powerful features, some of which include: easily through the DOM, adding animations and effects to elements slick, and super simple Ajax techniques and methods. Perhaps the homepage of jQuery described more precisely:
jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animation, and Ajax interactions for rapid web development. jQuery is designed to change the way you write JavaScript.
How do I start?
The first thing you need to do to start with jQuery jQuery is to visit the home page and download the latest version of jQuery. Once you’ve downloaded the jQuery library, just load the library to your server and link to the <head> section of your document, as shown in the code below.
<script type="text/javascript" src="/jquery.js"></script>
In addition, you can let google host your jQuery code for you, which can result in faster loading times for the end user, especially if the version of jQuery is already cached by their browser. To learn more about letting google host your code, visit the Google Ajax libraries.
(more…)