Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto tabbing among text fields created with logic:iterate

 
parasuram pareshaan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me perform auto tab among two text boxes that are created using <logic:iterate> of struts framework??

I am creating two text boxes using <logic:iterate>

code is here:

<logic:iterate id="textfield" name="form" property="newtextfield">

<html:text name="textfield" property="words" size="160" maxlength="160" indexed="true"/>

</logic:iterate>


Thanks in advance,
Parasuram
 
parasuram pareshaan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can write a javascript function to check for length of the string in the text box and when the limit is reached, I can focus to the next text box.

But, as the text boxes are created dynamically using logic:iterate, how can i access the second text box, as I dont have any identifier for that text box.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic