-
-
Save fayqLs/15c8b8a9c1568aecf6b285a094fd01f2 to your computer and use it in GitHub Desktop.
DEFINIR O CLIQUE OU FOCO NO BOTÃO AO TECLAR O ENTER
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// DEFINA UM ID PARA O BOTÃO | |
$btn_pesquisar->id = 'btn_pesquisar'; | |
// ROTINA JAVASCRIPT PARA DÁ O FOCO OU CLICAR NO BOTÃO AO PRESSIONAR O ENTER | |
TScript::create(' | |
$(document).keyup(function(e) { | |
if(e.which == 13) $("#btn_pesquisar").click(); | |
}); | |
'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment