Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Events and Methods in jQuery

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 148
    Comment on it

    jQuery is a javascript library used to solve various task by writing less number of codes.
    JQUERY EVENT- An event express the particular moment when something happens.
    List of events:-

    Mouse Events Keyboard Events Form Events Window Events
    click keypress submit load
    dblclick keydown change resize
    mouseenter keyup focus scroll
    mouseleave   blur unload

    Syntax for jquery event methods:

    $("p").click();  // assigned click event to all paragraphs

    JQUERY METHODS- Methods performs different tasks in less number of codes.

    Method Description
    after() / before() Used to add element just before or after another element
    change() The change event will fire when value of target element is changed
    data() / removeData() To add or delete the key/value pair in an element
    delay() To hold/pause the animation for some time, and time will be passed in parameters
    replaceAll() / replaceWith() Replace with replaces only one error and replace all replaces all the errors

 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: