|  Home   |  About Us   |  Online Exam   |  Tech World   |  Jobs    | Member Login

NEXT

Definition for jQuery

  i.  jQuery is a new kind of JavaScript Library.

  ii.  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.Its a Lightweight process.


jQuery Trigger Functions

Trigger functions trigger events for all matching element.

Example: $("button#demo").click()

The example will trigger the click event for a button element with id="demo".

Function Triggers

    (selector).blur()     The blur event of matching elements
    (selector).change()     The change event of matching elements
    (selector).click()     The click event of matching elements
    (selector).dblclick()     The double click event of matching elements
    (selector).error()     The error event of matching elements
    (selector).focus()     The focus event of matching elements
    (selector).keydown()     The key down event of matching elements
    (selector).keypress()     The key press event of matching elements
    (selector).keyup()     The key up event of matching elements
    (selector).select()     The select event of matching elements
    (selector).submit()     The submit event of matching elements

jQuery Selectors

      Selector       Example       Selects
    *     $("*") All elements
    #id     $("#lastname") The element with id=lastname
    .class     $(".intro") All elements with class="intro"
    element     $("p") All <p> elements
    .class.class     $(".intro.demo") All elements with class=intro and class=demo
    :first     $("p:first") The first <p> element
    :last     $("p:last") The last <p> element
    :even     $("tr:even") All even <tr> elements
    :odd     $("tr:odd") All odd <tr> elements
    :eq(index)      $("ul li:eq(3)") The third element in a list
    :gt(no)     $("ul li:gt(3)") List elements with an index greater than
    :lt(no)     $("ul li:lt(3)") List elements with an index less than
    :not(selector)     $("input:not(:empty)") All input elements that are not empty
    :header     $(":header") All header elements <h1><h2>...
    :animated     ------------- All animated elements
    :contains(text)     $(":contains('chennaisunday')") All elements witch contains the text
    :empty     $(":empty") All elements with no child (elements) nodes
    :hidden     $("p:hidden") All hidden <p> elements
    :visible     $("table:visible") All visible tables
    s1,s2,s3     $("th,td,.intro") All elements with matching selectors
    [attribute]     $("[href]") All elements with an href attribute
    [attribute=value]     $("[href='#']") All elements with href attribute value="#"
    [attribute!=value]     $("[href!='#']") All elements with href attribute value<>"#"
    [attribute$=value]     $("[href$='.jpg']") All elements with href attribute value containing ",jpg"
    :input     $(":input") All <input> elements
    :text     $(":text") All <input> elements with type="text"
    :password     $(":password") All <input> elements with type="password"
    :radio     $(":radio") All <input> elements with type="radio"
    :checkbox     $(":checkbox") All <input> elements with type="checkbox"
    :submit     $(":submit") All <input> elements with type="submit"
    :reset     $(":reset") All <input> elements with type="reset"
    :button     $(":button") All <input> elements with type="button"
    :image     $(":img" All <input> elements with type="img"
    :file     $(":file") All <input> elements with type="file"
    :enabled     $(":enabled") All enabled input elements
    :disabled     $(":disabled") All disabled input elements
    :selected     $(":selected") All selected input elements
    :checked     $(":checked") All checked input elements

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NEXT



               Our Portals  :   www.righttimeproperty.com   |   www.sundaychennai.com   |   www.dorabuji.com