[JQuery] events and jquery events

Source: Internet
Author: User

[JQuery] events and jquery events

I. Preface

Next, let's continue learning about the selector in the previous chapter.

 

Ii. Content

$ (Function () {}) file initializes loading event. the cursor position of pageX relative to the left edge of the document event. the cursor position of pageY relative to the top edge of the document event. preventDefault () prevents the default action event of an element. isDefaultPrevented () indicates whether preventDefault () event is called. result indicates the last value event.tar get returned by the event handler, which DOM element triggers the event element. timeStamp the time when the event occurred. type event of the type event. which key or button does which press bind to bind the event (for existing elements) $ (selector ). bind ("event", data, function) blur element loses focus $ (selector ). blur (function) change element (select, text, textarea) value change $ (selector ). change (function) click element $ (selector ). click (function) dbclick double-click element $ (selector ). dbclick (function) delegate adds an event to a child element. data is optional $ (selector ). delegate (childSelector, "event", data, function) undelegate Delete events added by delegate () $ (selector ). undelegate (selector, "event",) die removes the event added to the element through the live () method $ (selector ). error in the die ("event", function) error element $ (selector ). error (function) focus element to get focus $ (selector ). focus (function) keydown button Pressing Process $ (selector ). keydown (function) keypress button to raise $ (selector ). keypress (function) keyup button raised $ (selector ). keyup (function) live appending events. Pay attention to the difference with bind $ (selector ). live ("event", data, function) load event $ (selector ). load (function) unload leaves the page and only applies to the window object $ (window ). unload (function) mouseup the mouse up event $ (selector ). mouseup (function) mousedown the mouse down event $ (selector ). mousedown (function) mouseenter move the mouse to the element event $ (selector ). ouseenter (function) mouseleave move the mouse away from the selected element event $ (selector ). mouseleave (function) mousemove the mouse move event. Use it with caution and affect the performance $ (selector ). mousemove (function) mouseout move the mouse away from the selected element or its child element $ (selector ). mouseout (function) one is an event bound to an element that can only run once $ (selector ). one ("event", data, function) resize window resize $ (selector ). resize (function) scroll can scroll the sliding element of an object $ (selector ). scroll (function) select when the text of A textarea or text-type input element is selected $ (selector ). select (function) submit form $ (selector ). submit (function) toggle switches multiple events in turn. The first time you click to execute the first function, the second time you click to execute the second function... $ (selector ). toggle (function1, function2, function3) switches the Hide () and Show () statuses $ (selector ). toggle (speed, callback) Specifies whether to show only or hide only matching elements, true to show; false to hide $ (selector ). toggle (switch) trigger event $ (selector ). trigger ("event", [param1, param2,...]) $ (selector ). trigger (eventObj) triggerHandler trigger event, not bubbling, not triggering browser events, only affects the first match $ (selector ). triggerHandler (function1, function2, function3) unbind remove binding event $ (selector ). unbind ("event", function) $ (selector ). unbind (eventObj)

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.