You are here: Set tab to skip fields -- or tab down « HTML « IT news, forums, messages
Set tab to skip fields -- or tab down

Posted by sfp on 02/05/07 19:52

My table rows are defined as a dynamic array like


<tr class="formTr<%=bgcount%>" >
<td class="formTds" nowrap><%=arrayWeek[i]%></td>
<td class="formTds" nowrap><%=strToChange(arrayDay[i])%></td>
<td><input name="AUnit" class="textNoSize" maxlength="4" value="<
%=strToNull(arrayAUnit[i])%>" onKeypress="return isKeyNumberdot(0)" <
%=edit_flag%> ></td>
<td><input name="BUnit" class="textNoSize" maxlength="4" value="<
%=strToNull(arrayBUnit[i])%>" onKeypress="return isKeyNumberdot(0)" <
%=edit_flag%> ></td>
<td><input name="CUnit" class="textNoSize" maxlength="4" value="<
%=strToNull(arrayCUnit[i])%>" onKeypress="return isKeyNumberdot(0)"
onkeydown="if(event.keyCode==13){event.keyCode=9;}" <%=edit_flag%> ></
td>
<td><input name="TUnit" value="<%=strToNull(arrayTUnit[i])%>"
class="input-dis" disabled></td>
</tr>

This essentially puts three columns of data in x rows. When the
cursor is in, say, column 1, and the TAB key is pressed, I would like
focus to be set to the cell in the next row immediately below the
current row. I tried

onkeydown="if(event.keyCode==9){event.keyCode=11;}"

but this puts the cursor in the browser address bar. My app is
internal use only, only IE supported.

Thanks in advance,
Steve

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация