开发者

How to make the Enter key work like Tab in ASP.Net applications?

I have written a program. When I hit the Enter key, I want the cursor to move between the textboxes as if I had hit the tab k开发者_运维问答ey. How can I do that in ASP.Net?


Do it with JavaScript, I recommend jQuery:

Should be fairly basic. Create a keyboardeventlistener for the Enter key, and then from there trigger a keyboard event for the Tab key. Something like this:

keyboardeventistener(Enter key) {
    jQuery.Event("tab");
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜