I looovvveeeee jQuery

I’ve become a fan of jQuery. The day I started working on JQuery, I keep admiring about the architecture of the framework. As the caption rightly says “Write less and do more”, our source code will be reduced considerably, using this framework.

There are plenty of other frameworks available on the web like “Prototype”, “MooTools”, “YUI” by yahoo, “Dojo” etc., But I like jQuery. May be the first one I started using it.
I know this is not anything new. These frameworks exist from years back.

Here I will explain in simple terms about what JQuery is and how it works.

The basis of jQuery is “selectors”. We use regular expression like queries to select the DOM elements in the web page. We were using the below code segment to retrieve the DOM elements.

document.getElementById("tag id");

$ -> is nothing but a function given by jQuery which returns the jQuery DOM object array. jQuery DOM object has more functions, which can do lot of stuff. $ function takes a string parameter, criteria for the objects to select. A simple jQuery statement is given below.

$(“a").text("hi");

The above statement, will select all “anchor” tag in the web page and set the text to “hi”. We have given the simple criteria for selection, ie., “a” tags. The same way the below statement will hide all the “div” tags in the web page.

$("div").hide();

The functions text(), and hide() provided by jQuery are cool stuff. The hide() function takes the parameter like ‘slow’ and ‘fast’. Check the below demo for more clarification. You can also select a particular DOM element by just passing the element id like this

$(“#divid”).show();

I’d like to take this opportunity to announce the brand new jQuery 1.0! A lot of work has gone into this release. A lot of bugs fixed, a ton of new features, and a complete overhaul of how the jQuery development process is run.

By John Resig (from jQuery website, published in Aug 2006)

Thats all for now folks! Check more selectors and tutorials here. Happy jQuerying!!

Note: As jQuery $ is not working in WordPress, I’m using jQuery keyword itself for the above demo. I’m not going to dig more into it.

389 thoughts on “I looovvveeeee jQuery

  1. v bucks generator

    We’re a group of volunteers and starting a brand new scheme in our community. Your web site offered us with helpful info to work on. You’ve performed a formidable task and our whole group shall be grateful to you.|

  2. trump vote mask

    It turned out identified as Betty Ruler In the Market Shrine Catholic Rec center, but it really most recently was a Basilica, and I believe as a result in case a Pope would go to advises someday, he / she may result in expressing a mass certainly, there.

  3. trump vote mask

    In the event you usually have to tug out associated with her and also she’s volunteering the phrase all of a sudden, this is often for example for a pair of benefits: he has been falling in love with every body all over again and he’s working to dispel every reasoning behind two timing you might have in mind.

  4. hey

    Taxi moto line
    128 Rue la Boétie
    75008 Paris
    +33 6 51 612 712  

    Taxi moto paris

    I loved as much as you’ll receive carried out right here.
    The sketch is attractive, your authored subject matter stylish.
    nonetheless, you command get got an shakiness over that you wish be delivering the following.
    unwell unquestionably come more formerly again as exactly
    the same nearly very often inside case you shield this hike.

  5. maseczki z filtrem

    I’m extremely pleased to discover this website. I wanted to thank you for ones time just for this fantastic read!! I absolutely enjoyed every part of it and i also have you bookmarked to see new stuff in your site.

  6. Pingback: sildenafil stories

  7. Ashton Sotelo

    I’ll right away seize your rss as I can not in finding your e-mail subscription hyperlink or newsletter service.
    Do you’ve any? Kindly let me understand in order that
    I may subscribe. Thanks.

  8. Pingback: savings card for cialis

  9. Connie Lehr

    I have to thank you for the efforts you have put in penning this site.
    I really hope to see the same high-grade content by you in the future
    as well. In fact, your creative writing abilities has inspired me to get my very own blog now 😉

  10. Thurman York

    It’s the best time to make some plans for the long run and it’s
    time to be happy. I have read this put up and if I may I
    desire to recommend you few attention-grabbing issues or tips.
    Maybe you could write next articles relating to this article.
    I wish to learn more things about it!

  11. Pingback: lowest price for viagra

  12. Pingback: best over counter viagra

  13. Thomas Kobs

    It is appropriate time to make some plans for the future and it
    is time to be happy. I’ve learn this post and if I may
    I desire to counsel you few fascinating issues or advice.

    Maybe you could write subsequent articles referring to this article.
    I wish to read more things approximately it!

  14. Pingback: price of generic cialis

  15. Heidi Lightfoot

    I cherished up to you will obtain performed right here. The comic strip is attractive, your authored material stylish. however, you command get got an edginess over that you wish be handing over the following. ill surely come further formerly once more as exactly the similar just about very frequently inside of case you shield this hike.

  16. Peggy Hughes

    I’ve been surfing online more than three hours today, yet I
    never found any interesting article like yours.
    It is pretty worth enough for me. In my view, if all webmasters
    and bloggers made good content as you did, the
    internet will be much more useful than ever before.

  17. https://freevbuck.8b.io/

    Thank you for every other informative blog. The place else could I get that kind of information written in such a perfect way? I have a undertaking that I am just now operating on, and I have been at the glance out for such info.|

  18. Mildred Bray

    Hey! This is my first visit to your blog! We are
    a collection of volunteers and starting a new initiative
    in a community in the same niche. Your blog provided us useful information to work on. You
    have done a wonderful job!

  19. Pingback: latin boy viagra youtube pene

  20. Molly Barrera

    Greetings from Idaho! I’m bored to tears at work so I decided
    to browse your website on my iphone during lunch break.
    I really like the info you present here and can’t wait to take a look
    when I get home. I’m shocked at how quick your blog loaded on my phone ..
    I’m not even using WIFI, just 3G .. Anyways, fantastic blog!

  21. Pingback: cialis 20 mg effects

  22. Pingback: is buying viagra illegal

  23. Thomas Winters

    It’s the best time to make some plans for the longer term and it’s time to be
    happy. I have learn this submit and if I may I desire to recommend you some fascinating things or advice.
    Perhaps you can write subsequent articles relating to this article.
    I desire to learn more issues approximately it!

  24. Pingback: cialis patent expiration date

  25. Pingback: viagra no prescription

Leave a Reply to JamesprerM Cancel reply

Your email address will not be published. Required fields are marked *