OLD | NEW |
---|---|
1 <input id="sample" value='0123456789abcdefghijklmnopqrstuvwxyz'/> | 1 <input id="sample" value='0123456789abcdefghijklmnopqrstuvwxyz'/> |
2 <div id="inputEvent">none</div> | 2 <div id="inputEvent">none</div> |
3 <!- "ab" + trophy + space + "cdef" + trophy + space + "gh"> | |
4 <input id="sample2" value='ab🏆 cdef🏆 gh'/> | |
yosin_UTC9
2017/02/09 07:19:28
We should have ";" for character reference.
yabinh
2017/02/09 10:37:03
Done.
| |
3 <script> | 5 <script> |
4 document.getElementById('sample').addEventListener('input', function() { | 6 document.getElementById('sample').addEventListener('input', function() { |
5 document.getElementById('inputEvent').textContent = 'got'; | 7 document.getElementById('inputEvent').textContent = 'got'; |
6 }); | 8 }); |
7 </script> | 9 </script> |
8 | 10 |
OLD | NEW |