jquery Practice-Plugins

Source: Internet
Author: User

  • Overview of the jquery plugin
    Http://docs.jquery.com/Plugins
    Http://jquery.com/plugins/most_popular
  • Official form plug-in
    Http://jquery.com/plugins/project/form
    Jquery.form.js
    Get the value of a form control
    Collects the values of all successful form controls in the wrapper set, returning the array of strings that these values constitute. Returns an empty array without a value Fieldvalue (Excludeunsuccessfull) Bool:false unsuccessful controls are also collected Array of values
    The form-controlled machine returns the encoded string. A form in the package set Formserialize (semantic) Bool:true in order. False: Random The generated query string
    All the controls in the wrapper set. And can be used to serialize a part of the form Fieldserialize (excludeunsuccessful) 。。。。 The generated query string
    Make form controls empty and reset
    Clears the value of any control in the wrapper set, or the descendant node of the wrapper set element ClearForm () Packing set
    Native Reset () method Resetform () Packing set
    Submitting a form via Ajax
    If applied to the wrapper set that contains the form, gets the name and value of all successful controls for the target form and commits as an AJAX request Ajaxsubmit (Options) object or function. Hash object or Success callback function
    URL: Default action from the form
    Type: The method of the default form
    Datatype:xml/json/script
    target: string | object | element specifies one or more DOM elements to accept the response body as content
    Beforesubmit: function. Called before initiating a request. If the function returns False, the form submission is canceled. 3 Parameters: Object of data value (Name,value) array, jquery match set, Options object

    Success: callback function, called when the request is complete. Parameters: The jquery matching set of the success string, Ajaxsubmit () command based on the response body of the datatype format
    Clearform:true/false after successful emptying
    Resetform:ture/false
    Semantic:true/false order or Random
    Other Ajax options.
    Packing set
    Set up forms, submit forms, and block through normal semantic events Ajaxform (Options) .... Packing set
    Delete the settings applied to the form on the package set so that the form submission can be done in a normal manner Ajaxformunbind () Packing set





















  • Official size plug-in

    Returns the width of the first element, window, or Document object in a package set Width () The width of a window, document, or element
    Height Height () The height of the window, document, or element
    Innerwidth () The inner width of the first element
    Innerheight ()
    Outerwidth () Options: The hash object accepts a single option, the margin, which specifies whether the margin should be calculated. Default = False
    Outerheight ()
    Gets or sets the dimensions of a window, document, or scrollable content element. A scrolling element is an element that contains content ScrollTop (value) Set the value of the scroll top or left dimension Package set or size
    ScrollLeft (value)
    Returns the offset parent element of the first element in a wrapper set. The value of position with relative or absolute OffsetParent () Offset parent Element
    Position value of the first element relative to the offset parent element Position () Object:top,left
    Offset information for the first element Offset (options,results) Options:relativeto,lite,scroll,padding,border,margin
    Results: Receive results
    Package set or result











  • Real-time Query plugin
    To create an event handler for the element that matches the selector
    Triggers the execution of a function when any element matches the selector
    Triggers the execution of a function when any element no longer matches the selector
    Return to package set
    Livequery (Event,listener): establishes a function as an event handler for the specified event type, both on all elements in the matching set, and on any element that subsequently matches the selected group of the matching set.
    Performs an action when the element no longer matches the original selector because it is changed. To match the Add event handler for the mismatched Delete event handler
    Livequery (Onmatch,onmismatch): A function that matches when another function handler is not matched
    $.livequery.run (): Forces live query to trigger its listener. Global evaluation of execution elements
    Expire (): Delete the listener associated with the selector of the matching set
    Expire (Event,listener)
    Expire (Onmatch,onmismatch)

  • UI plug-in
    Http://docs.jquery.com/ui
    Mouse interaction, Widgets, visualizations

jquery Practice-Plugins

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.