Serialize Subsection

授权协议 未知
开发语言
所属分类 jQuery 插件、 其他jQuery插件
软件类型 开源软件
地区 不详
投 递 者 井斌斌
操作系统 未知
开源组织
适用人群 未知
 软件概览

ALERT This plugin does not work with any current release of jQuery. It will work after revision 5826 with no changes. Prior to that it will require you to modify serializeArray() to query the existence of this.elements instead of jQuery.nodeName(this, "form").

This plugin creates a serialize function that operates on elements descending from a form. Requires the Ancestry plugin.

Usage:

<form>
    <ol>
        <li id="first">
            <input id="firstname" type="text" />
            <input id="lastname" type="text" />
        </li>
        <li>
            <input id="address1" type="text" />
            <input id="address2" type="text" />
        </li>
        <li>
            <input id="mobile" type="text" />
            <input id="email" type="text" />
        </li>
    </ol>
</form>

// Returns the same results as if serializeArray() were called on the parent form element, restricted to only include the elements descending from the form.
$(#first).serializeSubsection();