Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checkbox with single item

 
Devan Brahma
Ranch Hand
Posts: 46
Hibernate Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i'm using struts2 checkbox for selecting of items.I'm using iterator to populate items.And uses the checkbox name to find the length(number of the items).
I do that in the javascript.
Everything went okay but when i have only one item in the list the checkboxname.length doesn't return a value.
Can anyone Please help.
How can i do when the list has only one item?

Thanks,
devan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic