1

我已经找了几天了,还没有找到答案。我确实看到了这个:jQuery - Copy / move text from select list to textarea我已经做过了,但是问题是如果在复制选定的下拉项进入文本区域后你改变主意并想要发送它回来还是摆脱它?

我不确定是否最好使用两个标签,或者我是否应该使用 textareas。这就是我在左侧字段中所拥有的:

<select size="10" name="options" variable="#available options" multiple="multiple">
  <option value="option1">Option 1</option>
  <option value="option2">Option 2</option>
</select>

And then when options are selected and the button is clicked they are added to a list and my textarea on the right reflects that list. 我是否还应该将右侧的区域设置为一个可选择的下拉菜单,类似于我所有选项的下拉菜单?如果我这样做,那么我如何让它只反映我点击的选项?

对不起,如果这没有意义。这是我第一次在这里发帖,我不是程序员(但正在学习)。提前致谢!

4

0 回答 0