0

我正在使用 Twitter 的 Bootstrap 创建一个电子邮件注册表单。

我被要求为感兴趣的产品创建一个选择选项。

<label>Products interested in:</label>

<select>
<option>Select all</option>
<option>Product A</option>
<option>Product B</option>
<option>Other</option>
</select>

如您所见,那里有两个开箱即用的选项。

A) 选择所有 B) 其他

谁能告诉我如何实现这些选项?

4

1 回答 1

0

It depends on what you want the 2 options to do? For any product or "select all and Other" you will need an event after that option has been selected.

I'm guessing you will need to use jquery to do something with the selection otherwise it will just "sit" in the select box.

于 2013-07-18T19:50:15.083 回答