Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Chapter 2: Basics of jQuery

    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 255
    Comment on it

    Hi All, In this chapter we are learn some basics, So here we go

    A jQuery statement starts with the dollar sign ($) and ends with a semicolon (;) in the which is in document ready function. $ sign defines the jQuery,

    Document Ready -

    All jquery code is written in ready function document ready means jQuery code from running before the document or page is finished loading (DOM clear)

       //code will here

    All code will appeare in script tag -

    <script type="text/javascript"></script>

    jQuery Syntax -

    jQuery syntax has two major thing first for selecting HTML elements and second perform some action on the element(s).


    For example :-


    Hiding current(this) element.


    Hiding all <p> elements.


    Hiding whose class=".div1" in the elements.


    Hiding whose id="div1" in the elements.

    Example of syntax flow of jQuery -

    <script type="text/javascript">


 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: