dsw7547 2016-04-13 13:49
浏览 31

CakePHP 3 - 创建多选下拉列表

Using CakePHP 3 framework.

First of all, I don't know if this is possible.

What I have now

  • Multiselect checkbox list.

Example

  • Bikes 1 checkbox
  • Bikes 2 checkbox
  • Bikes 3 checkbox
  • Cars 1 checkbox
  • Cars 2 checkbox

The user is now allowed to select al 5 items.

TODO

  • Users many-many relation with Vehicles
  • Users is allowed to select one per group.

Example TODO (my idea)

  • Dropdown bikes [ Bikes 1, Bikes 2, Bikes 3 ]

  • Dropdown cars [ Cars 1, Cars 2 ]

The user needs to be only allowed to choose one per group.

Is it possible to achieve this by one array?

EDIT

Is it possible to group a list, like the example above, of radiobuttons?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 matlab有关常微分方程的问题求解决
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算
    • ¥15 java如何提取出pdf里的文字?
    • ¥100 求三轴之间相互配合画圆以及直线的算法
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
    • ¥15 名为“Product”的列已属于此 DataTable