Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: RE: FORMS  (Read 3039 times)

0 Members and 1 Guest are viewing this topic.

cart0250

  • Guest
RE: FORMS
« on: August 07, 2006, 02:19:35 PM »
I have a table within a form using a repetition of the below code so that there are 5 columns each with 20 rows named 1-20 down the first column 21-40 down the 2nd column etc.  The user needs to enter choices 1-100 in the cells.  How do I make the tab or soft enter key take the user to the next cell down rather than the next cell across? I want the user to enter data in cell 1 then hit tab or soft enter and go to cell 2 etc, down the first column then up to the first cell in the second column etc.  

Also, does anyone have any advice on how to make a cell entry required?  I have a submit button at the bottom of the form and would like to display an error message to the user if certain fields are not filled in.

Thanks for any help you can give me.  I am an HTML novice, obviously.


<TBODY>
  <TR>
    <TD>&nbsp;&nbsp;1</TD>
    <TD><INPUT size=6></TD>
    <TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;21</TD>
    <TD><INPUT size=6></TD>
    <TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;41</TD>
    <TD><INPUT size=6></TD>  
    <TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;61</TD>
    <TD><INPUT size=6></TD>  
    <TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;81</TD>
    <TD><INPUT size=6></TD>  
</TD></TR>


Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: FORMS
« Reply #1 on: August 07, 2006, 03:18:35 PM »
Check out >this reference< and bookmark it.  You'll probably use it a lot.  The attribute you're looking for is "tabindex".
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos