Jump to content

Control hoping to previous Form Field?!


doubledee

Recommended Posts

I've got something really funky going on with one of my Forms, and have no clue what the problem is?!  :o

 

My Q&A Form has 5 dynamically generated TextAreas.

 

If I click on a TextArea, control immediately hops to the *previous* TextArea.  (I am NOT using any JavaScript.)

 

Anything obvious that might cause that?

 

Normally I would "debug" in NetBeans, but this weird "Field Hopping" behavior doesn't appear to be firing any code, so there is no way I can debug it...

 

 

Debbie

 

Link to comment
Share on other sites

The problem seems to be coming from here...

// Display Q&A.
foreach($thoughtsArray as $questionNo => $qaArray){
// Build Question.
echo '<label for="question' . $questionNo . '">' . $questionNo . '.) ' . $qaArray['questionText'] . "\n";

// Build Answer.
echo '<textarea id="question' . $questionNo . '"  cols="60" rows="2">';
//	echo '<textarea id="question' . $questionNo . '" name=answer[' . $qaArray["questionID"] . ']" cols="60" rows="2">';
//								echo (isset($questionNo) ? htmlentities($qaArray['answerText'], ENT_QUOTES) : '');
echo "</textarea>\n\n";

 

 

If I take out the id= part in this line above things go back to normal...

	echo '<textarea id="question' . $questionNo . '"  cols="60" rows="2">';

 

Any idea what is happening?!

 

 

Debbie

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.