The function keyCode
does not work in Chrome but Firefox works very well, by pressing the Tab in the input calcular
you should trigger the function.
here my code:
$("#calcular").keypress(function(event) {
var keycode = event.keyCode;
console.log(event.keyCode);
if (keycode == 9) {
$("input[name=Comentarioo]").focus();
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="text" id="calcular" value="">
I hope you have explained me well.