Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('[name=blabla]').keypress(function(event){
- if ( event.which == 13 ) {
- $('[name=botao]').click();
- }
- })
- });
- function teste(){
- alert("botao ativo!");
- }
- </script>
- <head>
- <body>
- <input name="blabla" >
- <input name="botao" onclick="teste();" type="button">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement