回答編集履歴
1
追記
answer
CHANGED
@@ -38,4 +38,18 @@
|
|
38
38
|
|
39
39
|
<select name="entity2" id="box2" multiple>
|
40
40
|
</select>
|
41
|
+
```
|
42
|
+
|
43
|
+
# 追記
|
44
|
+
一応jQuery版追記しておきます。さすがにスッキリ書けますね
|
45
|
+
|
46
|
+
```ここに言語を入力
|
47
|
+
$(function(){
|
48
|
+
$('#botton1').on('click',function(){
|
49
|
+
$('#box1 option:selected').clone().appendTo('#box2');
|
50
|
+
});
|
51
|
+
$('#botton2').on('click',function(){
|
52
|
+
$('#box2 option:selected').remove();
|
53
|
+
});
|
54
|
+
});
|
41
55
|
```
|