I have few tabs with input on each tab. I am using and I set on each input the same class so I can carry the value from one tab to another, like this:
$('.group_input1').change(function(){
$('.group_input1').val(this.value);
});
Now, to show each tab I am using shortkeys like this:
if (e.keyCode == 71) {
$("#input1").fadeIn();
$(".group_input").focus();
}
Each time the #input1 fade’s In its input gets a value of the character pressed, so I am looking for something to say, when $(".group_input").focus(); delete last character ?
Or is there a better way to do it?
I found the problem. For the shortkeys I was using keydown instead of keyup, so I replaced it