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");
}
精彩评论