-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathselect-multiple.html
39 lines (33 loc) · 1.22 KB
/
select-multiple.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<title>Copy content from multiple values in <select multiple> - simple-copy.js</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<h1>
Copy content from multiple values in <code><select multiple></code>
</h1>
<div class="foobar">
<select multiple>
<option value="foo" selected>Foo</option>
<option value="bar">Bar</option>
<option value="baz">Baz</option>
<option value="fooled you!" selected>Bazinga</option>
</select>
<hr>
<button data-simplecopy-target=".foobar > select"
data-simplecopy-multiple="|">Copy multiple values</button>
<code class="source">
<p><button data-simplecopy-target="selector" data-simplecopy-multiple="|">...<button></p>
</code>
</div>
<div class="paste-here">
<div contenteditable="true"></div>
</div>
<link rel="stylesheet" type="text/css" href="example.css">
<script type="text/javascript" src="../simple-copy.min.js"></script>
</body>
</html>