Sign in to follow this  
Followers 0
JULIO CESAR PEDROSO

Trocando TAB por Enter WebDev

1 post in this topic

//Nas propriedades da página em Advanced:
<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:Visible');
inputs.eq( inputs.index(this)+ 1 ).focus();
}

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0