Click here to Skip to main content
15,923,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have five textboxs each and every textbox having text_Textchanged event. after build in browser IE and Safari not firing when click on tab key. same issue was working in Firefox and Chrome. how to solve my issue..? give me any ideas

just now am added below javascript its working in IE browser, but not working in Safari my script

my script like this

XML
<script language="JavaScript">

function ModifyEnterKeyPressAsTab() {

    if (window.event && window.event.keyCode == 9) {

        window.event.keyCode = 13;

    }

}

</script>


XML
<asp:TextBox ID="txtOver1" runat="server" class="newtextbox"
                            AutoPostBack="True" ontextchanged="txtOver1_TextChanged" onKeyDown="return ModifyEnterKeyPressAsTab();" MaxLength="10"></asp:TextBox>




thanks and regards
Posted
Updated 6-May-13 4:17am
v2
Comments
Please post your code...
ExpertITM 4-May-13 13:34pm    
have you try with tabindex property for textbox?

1 solution

You can detect the tab key itself using javascript.Refer to this link
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900