gchrt
09-22-2004, 03:42 PM
Hi,
I am trying to refocus the cursor back to the form field just evaluated with an onChange event.
Here is the function I am calling:
function checkAnswerOnlyInput (inputAnswer, questionId) {
if(inputAnswer > 5 || inputAnswer == 0) {
alert("Answers must be within the range of 1 to 5");
alert("questionId = " + questionId);
alert("testPage[questionId].name = " + testPage[questionId].name);
testPage[questionId].focus();
The 'testPage[questionId].name' returns the correct element, but it won't focus to that element.
I am stumped.
glenn
I am trying to refocus the cursor back to the form field just evaluated with an onChange event.
Here is the function I am calling:
function checkAnswerOnlyInput (inputAnswer, questionId) {
if(inputAnswer > 5 || inputAnswer == 0) {
alert("Answers must be within the range of 1 to 5");
alert("questionId = " + questionId);
alert("testPage[questionId].name = " + testPage[questionId].name);
testPage[questionId].focus();
The 'testPage[questionId].name' returns the correct element, but it won't focus to that element.
I am stumped.
glenn