By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,713 Members | 1,338 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,713 IT Pros & Developers. It's quick & easy.

set focus

P: 18
Please help me on how to set focus, here is my code:

for (i=0; i < 26; i++)
{
if (document.getElementById("txtNoofDefects" + i ).value != '' )

intDefects += parseFloat(document.getElementById("txtNoofDefects " + i ).value);

}

txtTotal.value = intDefects


if (intDefects != txtReject.value)

hidAction.value='Defects'
elements("txtNoofDefects" + i ).focus();
submit()
Feb 19 '07 #1
Share this Question
Share on Google+
1 Reply

acoder
Expert Mod 15k+
P: 16,027
Use
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("txtNoofDefects" + i ).focus();
Feb 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.