Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <select id="test" onkeypress="sayHello()">
- <option value="1">1234</option>
- <option value="5">5678</option>
- </select>
- </body>
- <script>
- function sayHello(){
- alert("Hello");
- }
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement