PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → Webdev trocando a função do Tab por Enter
Webdev trocando a função do Tab por Enter
Iniciado por Boller, mai., 31 2021 7:40 PM - Sem resposta
Membro registado
3.651 mensagems
Popularité : +175 (223 votes)
Publicado em maio, 31 2021 - 7:40 PM
<script language="javascript"type="text/javascript"src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"></script>
<script language="javascript"type="text/javascript">
$(Document).ready(FUNCTION(e) {
$('Input').keydown( FUNCTION(e) {
var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
IF(key == 13) {
e.preventDefault();
var inputs = $(this).closest('form').find(':Input:tabbable');
inputs.eq( inputs.index(this)+ 1 ).focus();
}
IF(key == 38) {
e.preventDefault();
var inputs = $(this).closest('form').find(':Input:tabbable');
inputs.eq( inputs.index(this)- 1 ).focus();
}
});
});
</script>



<script language="javascript"type="text/javascript"src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"></script>
<script language="javascript"type="text/javascript">
$(document).ready(function(e) {
$('input').keydown( function(e) {
var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
if(key == 13) {
e.preventDefault();
var inputs = $(this).closest('form').find(':input:tabbable');
inputs.eq( inputs.index(this)+ 1 ).focus();
}
if(key == 38) {
e.preventDefault();
var inputs = $(this).closest('form').find(':input:tabbable');
inputs.eq( inputs.index(this)- 1 ).focus();
}
});
});
</script>


https://repository.windev.com/resource.awp…

Bons estudos

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/