`
flyleave
  • 浏览: 71718 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Select Multiple Form Fields

阅读更多

ASMSELECT

asmSelect is a jQuery plugin that answers some of these issues. A progressive enhancement is applied to the select multiple that makes it much easier to use. This enhancement automatically hides the original select multiple, and instead presents a regular select showing the available options, and an HTML list showing the already-selected options. While hidden, the original select multiple is updated as the user makes changes. Here is an example of an asmSelect:

Example

 

Select some categories Best Practices Client Relationships Communications Compensation Contracts and Negotiations Design and Construction Marketplace Design/Build Project Delivery Education Financial Management and Profitability Global Marketplace Human Resources Intelligent Choices Leadership Management Marketing Mergers and Acquisitions Operations Management Public Relations Staff Recruitment and Retention Strategic Planning Strategy Sustainability Technology Trends
  1. Staff Recruitment and Retentionremove
 Best Practices Client Relationships  Compensation Contracts and Negotiations Design and Construction Marketplace Design/Build Project Delivery Education Financial Management and Profitability    Leadership Management  Mergers and Acquisitions Operations Management Public Relations  Strategic Planning Strategy Sustainability   Technology Trends Marketing Global Marketplace Communications Human Resources Intelligent Choices Staff Recruitment and Retention

 

Advantages

No Ctrl/Cmd-Clicking is necessary to select multiple items, and an accidental click is not destructive. You add or remove items one at a time. Only the already-selected items occupy screen real estate, as they should. A remove link is included with each selected item, which eliminates ambiguity. Viewing and choosing a new item to add requires clicking on the select. This action is inherently more familiar, and displays many more available options at once, than a select multiple. More is seen at a glance and less scrolling (if any) is required to see all available options.

When an option has been selected, then it either no longer appears in the list of options, or it is disabled (grayed out and not selectable). If the user removes it from their selected items, then it naturally goes back into the list of available options.

Because this solution relies upon the familiar select pulldown, the enhancement is not likely to require additional user instruction. The cause-and-effect relationship between the select and its effect on the list is clear, as is the action for removing items from the list.

Optionally, this type of select is sortable, giving it hierarchy. The user can drag and drop the items to the desired order. Lets say that your article is related to 10 categories, which you have selected. But “Technology” and “Trends” are the most significant categories. You’d hardly be satisfied with those two categories living at the bottom of the list when your article is published on the site. Wouldn’t it be nice if you could not only select multiple categories, but also put them in the order you wanted? This solution will enable that.

分享到:
评论

相关推荐

    laravel-admin select框默认选中的方法

    文档http://laravel-admin.org/docs/#/zh/model-form-fields?id=select选择框; 文档里面没有看到这个默认选中的属性,也可能是我没有找到;查阅了select2的文档看到了selected属性,通过曲线的方式实现了这个功能;...

    bootstrapValidator bootstrap-select验证不可用的解决办法

    <select class="selectpicker form-control" multiple data-width="60%" id="roleidForSelect" title="---请选择---"> </select> ``` 3. **为隐藏input赋值并手动触发验证**: 当用户在多选下拉框中做出选择后...

    jQuery实现form表单元素序列化为json对象的方法

    例如,`<select multiple>`或多个同名的`<input type="checkbox">`。对于这种情况,我们需要确保在`o`对象中存储的是一个数组,而不是单独的值。如果`o[this.name]`已经存在,我们检查它是否是一个数组,如果不是,...

    240多个jQuery插件

    7. Text limiter for form fields:限制输入字符数。 8. Ajax Username Check with jQuery:实时检查用户名可用性。 **表单选取框插件**: 1. jQuery Combobox:组合框插件,提供下拉列表和文本输入功能。 2. ...

    JQuerry 插件介绍

    - Text limiter for form fields:限制用户在输入框中输入的字符数。 - Ajax Username Check with jQuery:通过AJAX检查用户名的可用性。 3. 表单-选取框: - jQuery Combobox:将下拉选择框转换为组合框样式。...

    240多个jQuery UI插件

    - **Text limiter for form fields**: 限制文本框的最大输入长度。 - **Ajax Username Check with jQuery**: 实现用户名唯一性检查。 #### 表单-选取框(Form-SelectBox stuff) - **选取框插件**包括: - **...

    jquery插件表

    - **Text limiter for form fields**:限制用户在输入框中输入的字符数量。 - **Ajax Username Check with jQuery**:实时检查用户名是否可用,避免用户注册冲突。 ### 表单选取框 - **jQuery Combobox**:将下拉...

    240多个jQuery插件.doc

    - **Text limiter for form fields**: 限制文本框输入的最大字符数。 #### 3. 表单-选取框插件 - **jQuery ComboBox**: 创建可下拉的组合框。 - **jQuery controlled dependent (or Cascading) Select List**: 实现...

    PLSQL.Developer v11.0.0.1762 主程序+ v10中文包+keygen

    The logon form now has shortcuts for all fields, is sizeable to show long database names in the selection list For multi-monitor configurations the form positions will now be stored and restored per ...

    jQuery插件教程(搜罗了全部插件).docx

    - jQuery Focus Fields:自动聚焦输入字段。 - jQuery Time Entry:输入时间的插件。 5. **时间、日期和颜色选取类插件**: - jQuery UI Datepicker:提供完整的日期选择器,可定制样式。 - jQuery date picker...

    海量经典的jQuery插件集合

    #### 三、表单选取框插件(Form Select Box Stuff) **1. jQuery ComboBox** - **功能概述**:增强下拉列表功能。 - **应用场景**:提供更好的用户交互体验。 **2. jQuery controlled dependent (or Cascading) ...

    VisualFoxPro6.0中文版命令手册.pdf

    ### VisualFoxPro 6.0 Command Manual ...These commands form the basis for managing databases, tables, and views in Visual FoxPro 6.0, providing essential tools for database administrators and developers.

    ZendFramework中文文档

    14.5.3. Retrieving Validated Fields and other Reports 14.5.3.1. Querying if the input is valid 14.5.3.2. Getting Invalid, Missing, or Unknown Fields 14.5.3.3. Getting Valid Fields 14.5.4. Using ...

    微软内部资料-SQL性能优化3

    It is up to the application to define what consistency means, and isolation in some form is needed to achieve consistent results. SQL Server uses locking to achieve isolation. Definition of ...

    微软内部资料-SQL性能优化5

     If the table is a heap (in other words, it has no clustered index), the bookmark is a RID, which is an actual row locator in the form File#:Page#:Slot#. Finding Rows with a NC Index on a Heap ...

    强烈推荐240多个jQuery插件提供下载

    - **jQuery Focus Fields** 强调表单中的活动字段。 **时间、日期和颜色选取**: - **jQuery UI Datepicker** 是官方提供的日期选择器,功能强大。 - **jQuery date picker plugin** 是另一种简洁的日期选择插件。 ...

    Dreamweaver CS4 黄金插件10-02

    22. Clear Initial Form Fields V2.1.1 For Adobe Dreamweaver 23. Close All Documents V1.0.5 For Adobe Dreamweaver 24. Close Bowser Window V1.2.0 For Adobe Dreamweaver 25. Close Button 1.1.1 For Adobe ...

    EhLib 9.1.038 for D7-XE-10.2

    Allows you to select records, columns, and quadrilateral environments. Certain titles attributed to multiple or all columns. Putting a footnote that can represent the values ​​of the total fields,...

Global site tag (gtag.js) - Google Analytics