jQuery: “The Write Less, Do More JavaScript Framework”


What is jQuery.

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript. According to the official jQuery website.

In my early years as a programmer, my greatest fear was learning JavaScript. Then, to me, it looked like an alien language, it is not Object Oriented, and to achieve a simple task, you have to  write numerous lines of code. Back then, the common thing people use JavaScript for (Especially, newbies) was to create alert or notification which i guess is the simplest form of javascript code. Here is an example below;

alert("Some descriptive text notification for the user.")

If you were  to write a traditional javascript code to hide an element, it would look something like this below;


function hideshow(which){
if (!document.getElementById)
return
if (which.style.display=="block")
which.style.display="none"
else
which.style.display="block" }

Where you could have written something like this;

$('.triggerButton').click(function(e){
e.preventDefault();
$('.div').hide();
});

Now, You see how easy the later code was. Easy to understand right? That is what jQuery Does.

How To Use jQuery

To use jQuery, you have to include it at the bottom of your HTML makeup. First, you will need to get a copy from the jQuery website, or use the CDN to get the latest stable version.

//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js

Or click here to download jQuery.

After downloading and including it to your HTML makeup, Here are some code that can kick start your journey into jQuery.

impulse_studios-jquery_cheat_sheet-1.0

JQueryCheatSheet-1.3.2

Here is a jQuery Form Validator Plugin Reference

Jquery-Validator-Cheat-sheet

Sponsored
Professional Web Application Development at an Affordable Cost.
Buy Affordable Female Products Online in Nigeria
Advertisements

2 thoughts on “jQuery: “The Write Less, Do More JavaScript Framework”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s