Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code for forcing cursor to next cell?

Status
Not open for further replies.

DMKPDX

Technical User
Jan 18, 2012
2
US
How do I force the cursor to go to the next cell in a table after user presses Enter?

It had been working by default but adding a row of informational on-screen text between the cells (on 2 separate rows) now bumps the cursor down to the Submit button at the end of the page.

(Code available but saving time and trouble if it's an obvious answer.)

Thanks!

 
That's along the lines of what I was hoping for but it's actually particular in that I can't use TAB to go between cells, I have to use Enter.

Could <caption>Blah blah</caption> cause this behavior? That preludes the added section between <thead><tr><th></th><th><br>...</th></tr></thead>

I figure the problem's in that bookended code otherwise.




 
you could add an event listener to detect the enter key being pressed and then locate the next TABINDEX cell and then set the focus on it.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top