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'/> |
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 |