I put a tabIndex=0 on my textbox and tabIndex=1 for a button.
The focus is on my textbox. After the first Tab, it also jumps to the URL address and get to my button only on the second tab.
I believed the problem comes from the fact that each control has a default Tabindex set to 0. I updated it to another value and the problem still remains.
Anybody can help us ?
Thanks.
pranav_jog
0
Light Poster
Recommended Answers
Jump to PostHi, in tag Form add these method :
defaultbutton and defaultfocus.Every time you hit enter in textbox control, it directly triggers your button click event.
<form id="form1" runat="server" defaultbutton ="TxtFind" defaultfocus ="CmdFind">
Hopely solve your problem.
Thanks,
Kusno
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.