C# – Pressing Enter Move Focus To Next Control In Web Page in C#

asp.netcjquery

Sir/Madam
I have create a web site that site has many pages and pages are many controls.
for example i have 12 controls
3 textboxes
2 dropdownlistbox1
2 chkbox
2 radiobutton
1 button ..
user wants when he press enter key focus will be to the next control .. i found some googly but they move on textboxs not on any other control using Jquery….

Best Answer

I believe you are looking for something like this

$(document).keypress(function(e) {
if(e.which == 13) {
$(document.activeElement).next().focus();
}
});

Demo Fiddle