OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 | |
3 <template> | |
4 <input list="lang" value="5"> | |
5 <datalist id="lang"> | |
keishi
2014/07/15 06:12:13
Extra tab.
You can move the datalist before the in
deepak.sa
2014/07/16 14:47:36
If input is put after datalist, it doesn't work pr
| |
6 <option value="D">German</option> | |
7 <option value="E">English</option> | |
8 </datalist> | |
9 </template> | |
10 | |
11 <host></host> | |
12 | |
13 <script> | |
14 var host = document.querySelector('host') | |
15 host.appendChild(document.querySelector('template').content.cloneNode(true)); | |
16 document.querySelector('input').focus(); | |
17 </script> | |
OLD | NEW |