I have a table of items in a form. I have code to use the up and down arrow to scroll thru the items. I would like the items to be auto-selected when they enter the field. I tried using this.select() in the OnFocus trigger, but that does not work if I use the up/down arrow to get into the field. any ideas?
<html>
<form name="post_grdbk" action="stars3.star_portal.process_teacher_gradebook" method="post">
<table>
<tr>
<td align="center" nowrap><strong><input type="text" name="p_grd_score" size="5" maxlength="5" onFocus="this.select() ;" value="10" id="Cell821732" onKeyDown="switch(event.keyCode) {case 40: document.post_grdbk.Cell821733.focus();return false; break; case 13: document.post_grdbk.Cell821733.focus();return false; break; case 38: document.post_grdbk.Cell821731.focus();return false; break;}"></strong></td>
</td>
</tr>
<tr>
<td align="center" nowrap><strong><input type="text" name="p_grd_score" size="5" maxlength="5" onFocus="this.select() ;" value="" id="Cell831162" onKeyDown="switch(event.keyCode) {case 40: document.post_grdbk.Cell831163.focus();return false; break; case 13: document.post_grdbk.Cell831163.focus();return false; break; case 38: document.post_grdbk.Cell831161.focus();return false; break;}"></strong></td>
</td>
</tr>
</table>
</form>
</html>
<html>
<form name="post_grdbk" action="stars3.star_portal.process_teacher_gradebook" method="post">
<table>
<tr>
<td align="center" nowrap><strong><input type="text" name="p_grd_score" size="5" maxlength="5" onFocus="this.select() ;" value="10" id="Cell821732" onKeyDown="switch(event.keyCode) {case 40: document.post_grdbk.Cell821733.focus();return false; break; case 13: document.post_grdbk.Cell821733.focus();return false; break; case 38: document.post_grdbk.Cell821731.focus();return false; break;}"></strong></td>
</td>
</tr>
<tr>
<td align="center" nowrap><strong><input type="text" name="p_grd_score" size="5" maxlength="5" onFocus="this.select() ;" value="" id="Cell831162" onKeyDown="switch(event.keyCode) {case 40: document.post_grdbk.Cell831163.focus();return false; break; case 13: document.post_grdbk.Cell831163.focus();return false; break; case 38: document.post_grdbk.Cell831161.focus();return false; break;}"></strong></td>
</td>
</tr>
</table>
</form>
</html>